/**
 * TradeJournal Homepage, Header & Footer Styles
 * Version: 2.0.0
 */

/* ==================== Header Styles ==================== */
.tj-header {
    background: var(--tj-bg-primary);
    border-bottom: 1px solid var(--tj-border);
    padding: 0.625rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .tj-header {
    background: rgba(17, 24, 39, 0.95);
}

.tj-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.tj-header-logo {
    min-width: 0;
    flex: 1 1 auto;
}

.tj-nav {
    min-width: 0;
    overflow: visible;
}

.tj-header-logo .tj-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--tj-text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    min-width: 0;
}

.tj-logo-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tj-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.tj-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    color: var(--tj-text-secondary);
    text-decoration: none;
    border-radius: var(--tj-radius);
    transition: var(--tj-transition);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.tj-nav-link:hover {
    color: var(--tj-primary);
    background: var(--tj-bg-secondary);
}

.tj-nav-link.active {
    color: #1d4ed8;
    background: #eaf2ff;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

.tj-mobile-nav a.active,
.tj-dropdown-item.active {
    color: #1d4ed8;
    background: #eaf2ff;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

[data-theme="dark"] .tj-nav-link.active,
body.tjwp-dark-mode .tj-nav-link.active,
[data-theme="dark"] .tj-mobile-nav a.active,
body.tjwp-dark-mode .tj-mobile-nav a.active,
[data-theme="dark"] .tj-dropdown-item.active,
body.tjwp-dark-mode .tj-dropdown-item.active {
    color: #dbeafe;
    background: #1e3a8a;
    box-shadow: inset 0 0 0 1px #60a5fa;
}

.tj-nav-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.tj-header-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 0 0 auto;
}

/* User Menu */
.tj-user-menu {
    position: relative;
}

.tj-user-button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.6rem;
    background: var(--tj-bg-secondary);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    cursor: pointer;
    transition: var(--tj-transition);
    max-width: 52px;
    overflow: hidden;
}

.tj-user-button:hover {
    border-color: var(--tj-primary-light);
}

.tj-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.tj-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tj-text-primary);
    display: none;
}

.tj-user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    max-width: min(300px, calc(100vw - 24px));
    background: var(--tj-bg-primary);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius-lg);
    box-shadow: var(--tj-shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--tj-transition);
    z-index: 1200;
}

[dir="rtl"] .tj-user-dropdown {
    right: auto;
    left: 0;
}

.tj-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tj-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--tj-text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--tj-transition);
}

button.tj-dropdown-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.tj-dropdown-item:hover {
    background: var(--tj-bg-secondary);
    color: var(--tj-primary);
}

.tj-dropdown-item svg {
    opacity: 0.6;
}

.tj-dropdown-divider {
    height: 1px;
    background: var(--tj-border);
    margin: 0.5rem 0;
}

.tj-menu-language-block {
    align-items: flex-start;
}

.tj-menu-language-controls {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

.tj-menu-language-title {
    font-size: 0.8rem;
    color: var(--tj-text-secondary);
}

.tj-menu-language-options {
    display: flex;
    gap: 0.4rem;
}

.tj-menu-lang-option {
    border: 1px solid var(--tj-border);
    background: var(--tj-bg-secondary);
    color: var(--tj-text-primary);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.tj-menu-lang-option:hover {
    border-color: var(--tj-primary-light);
    color: var(--tj-primary);
}

.tj-floating-add-trade {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tj-floating-add-trade:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45);
}

[data-theme="dark"] .tj-menu-lang-option {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .tj-floating-add-trade {
    background: #1d4ed8;
    color: #ffffff;
}

/* ==================== Back to Top Button ==================== */
.tj-back-to-top {
    position: fixed;
    right: 20px;
    bottom: var(--tj-back-to-top-bottom, 80px);
    z-index: 9997;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--tj-border);
    background: var(--tj-bg-primary);
    color: var(--tj-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--tj-shadow-md);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

.tj-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tj-back-to-top:hover {
    background: var(--tj-primary);
    border-color: var(--tj-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

[data-theme="dark"] .tj-back-to-top,
body.tjwp-dark-mode .tj-back-to-top {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .tj-back-to-top:hover,
body.tjwp-dark-mode .tj-back-to-top:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Mobile Menu */
.tj-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 4px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: var(--tj-transition);
}

.tj-mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--tj-text-primary);
    transition: var(--tj-transition);
}

.tj-mobile-menu {
    display: none;
}

.tj-mobile-menu-close,
.tj-mobile-theme-toggle,
.tj-mobile-logout-link {
    display: none;
}

@media (max-width: 1380px) {
    .tj-header-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
    }

    .tj-nav {
        display: none;
    }

    .tj-header-actions {
        display: none;
    }

    .tj-header-logo .tj-logo {
        gap: 0.6rem;
        font-size: 1.05rem;
    }
    
    .tj-mobile-menu-toggle {
        display: flex;
        justify-self: end;
        align-self: center;
    }
    
    .tj-mobile-menu {
        display: block;
        position: fixed;
        inset: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(16px);
        padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--tj-transition);
        z-index: 20000;
        overscroll-behavior: contain;
    }
    
    .tj-mobile-menu.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .tj-mobile-menu-panel {
        margin-left: auto;
        width: min(380px, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
        height: calc(100dvh - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        overflow: hidden;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
        border-radius: 24px;
        border-left: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: -24px 0 48px rgba(15, 23, 42, 0.22);
        transform: translateX(110%);
        transition: transform 0.24s ease;
        -webkit-overflow-scrolling: touch;
    }

    .tj-mobile-menu.show .tj-mobile-menu-panel {
        transform: translateX(0);
    }

    .tj-mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: 0.85rem;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    }

    .tj-mobile-menu-brand {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1rem;
        font-weight: 700;
        color: var(--tj-text-primary);
    }

    .tj-mobile-menu-close {
        display: inline-flex;
        position: relative;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--tj-border);
        border-radius: 999px;
        background: var(--tj-bg-secondary);
        color: var(--tj-text-primary);
        cursor: pointer;
    }

    .tj-mobile-menu-close span {
        position: absolute;
        width: 18px;
        height: 2px;
        background: currentColor;
        border-radius: 999px;
    }

    .tj-mobile-menu-close span:first-child {
        transform: rotate(45deg);
    }

    .tj-mobile-menu-close span:last-child {
        transform: rotate(-45deg);
    }
    
    .tj-mobile-nav {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.2rem;
    }
    
    .tj-mobile-nav li {
        margin-bottom: 0;
    }
    
    .tj-mobile-nav a {
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        min-height: 52px;
        padding: 0.95rem 1rem;
        color: var(--tj-text-primary);
        text-decoration: none;
        border-radius: 14px;
        border: 1px solid rgba(226, 232, 240, 0.88);
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
        transition: var(--tj-transition-fast);
    }
    
    .tj-mobile-nav a:hover {
        background: #eff6ff;
        color: var(--tj-primary);
        border-color: #bfdbfe;
        transform: translateX(-2px);
    }

    .tj-mobile-menu-footer {
        margin-top: auto;
        flex: 0 0 auto;
        padding-top: 1rem;
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .tj-mobile-language-block {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.95rem 1rem;
        border: 1px solid rgba(226, 232, 240, 0.88);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .tj-mobile-language-header {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        color: var(--tj-text-primary);
    }

    .tj-mobile-language-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--tj-text-primary);
    }

    .tj-mobile-language-options {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tj-mobile-lang-option {
        flex: 1 1 72px;
        min-height: 42px;
        justify-content: center;
        padding: 0.65rem 0.85rem;
        border-radius: 12px;
        background: #f8fafc;
        box-shadow: none;
    }

    .tj-mobile-lang-option.active,
    .tj-mobile-lang-option[aria-pressed="true"] {
        color: #1d4ed8;
        background: #dbeafe;
        border-color: #93c5fd;
    }

    .tj-mobile-theme-toggle,
    .tj-mobile-logout-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        min-height: 48px;
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 14px;
        border: 1px solid rgba(191, 219, 254, 0.95);
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        color: #1d4ed8;
        text-decoration: none;
        font-weight: 700;
        cursor: pointer;
    }

    .tj-mobile-logout-link {
        border-color: rgba(254, 202, 202, 0.95);
        background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
        color: #be123c;
    }

    .tj-mobile-menu-toggle.active {
        background: #eff6ff;
        border-color: #bfdbfe;
    }

    .tj-mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .tj-mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .tj-mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    [data-theme="dark"] .tj-mobile-menu-panel,
    body.tjwp-dark-mode .tj-mobile-menu-panel {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
        border-left-color: #243244;
    }

    [data-theme="dark"] .tj-mobile-menu-header,
    body.tjwp-dark-mode .tj-mobile-menu-header,
    [data-theme="dark"] .tj-mobile-menu-footer,
    body.tjwp-dark-mode .tj-mobile-menu-footer {
        border-color: #243244;
    }

    [data-theme="dark"] .tj-mobile-menu-toggle,
    body.tjwp-dark-mode .tj-mobile-menu-toggle {
        background: rgba(15, 23, 42, 0.82);
        border-color: #334155;
        box-shadow: 0 10px 24px rgba(2, 6, 23, 0.32);
    }

    [data-theme="dark"] .tj-mobile-nav a,
    body.tjwp-dark-mode .tj-mobile-nav a,
    [data-theme="dark"] .tj-mobile-language-block,
    body.tjwp-dark-mode .tj-mobile-language-block,
    [data-theme="dark"] .tj-mobile-menu-close,
    body.tjwp-dark-mode .tj-mobile-menu-close {
        background: rgba(15, 23, 42, 0.82);
        border-color: #334155;
        color: #e2e8f0;
        box-shadow: none;
    }

    [data-theme="dark"] .tj-mobile-language-header,
    body.tjwp-dark-mode .tj-mobile-language-header,
    [data-theme="dark"] .tj-mobile-language-title,
    body.tjwp-dark-mode .tj-mobile-language-title {
        color: #e2e8f0;
    }

    [data-theme="dark"] .tj-mobile-lang-option,
    body.tjwp-dark-mode .tj-mobile-lang-option {
        background: rgba(30, 41, 59, 0.92);
        border-color: #334155;
        color: #e2e8f0;
    }

    [data-theme="dark"] .tj-mobile-lang-option.active,
    body.tjwp-dark-mode .tj-mobile-lang-option.active,
    [data-theme="dark"] .tj-mobile-lang-option[aria-pressed="true"],
    body.tjwp-dark-mode .tj-mobile-lang-option[aria-pressed="true"] {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
        border-color: #60a5fa;
        color: #eff6ff;
    }

    [data-theme="dark"] .tj-mobile-nav a:hover,
    body.tjwp-dark-mode .tj-mobile-nav a:hover {
        background: rgba(30, 41, 59, 0.92);
        border-color: #3b82f6;
        color: #bfdbfe;
    }

    [data-theme="dark"] .tj-mobile-theme-toggle,
    body.tjwp-dark-mode .tj-mobile-theme-toggle {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
        border-color: #60a5fa;
        color: #eff6ff;
    }

    [data-theme="dark"] .tj-mobile-logout-link,
    body.tjwp-dark-mode .tj-mobile-logout-link {
        background: linear-gradient(135deg, #4c0519 0%, #881337 100%);
        border-color: #fb7185;
        color: #ffe4e6;
    }
}

@media (max-width: 1380px) and (orientation: landscape) {
    .tj-mobile-menu {
        align-items: stretch;
    }

    .tj-mobile-menu-panel {
        height: calc(100dvh - 1rem);
        max-height: calc(100dvh - 1rem);
        width: min(420px, calc(100vw - 1rem));
        max-width: calc(100vw - 1rem);
        padding: 0.85rem;
    }

    .tj-mobile-nav a,
    .tj-mobile-theme-toggle,
    .tj-mobile-logout-link {
        min-height: 46px;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
}

@media (max-width: 640px) {
    .tj-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tj-header {
        padding: 0.5rem 0;
    }

    .tj-header-content {
        gap: 0.6rem;
    }

    .tj-header-logo .tj-logo {
        gap: 0.5rem;
        font-size: 0.98rem;
    }

    .tj-header-logo img {
        width: 28px;
        height: 28px;
    }

    .tj-mobile-menu-toggle {
        padding: 0.45rem;
        border-radius: 10px;
    }

    .tj-mobile-menu-toggle span {
        width: 22px;
    }

    .tj-floating-add-trade span {
        display: none;
    }

    .tj-floating-add-trade {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }

    .tj-back-to-top {
        right: 20px;
    }
}

@media (max-width: 420px) {
    .tj-logo-text {
        font-size: 0.92rem;
    }

    .tj-mobile-menu-panel {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
    }
}

/* ==================== Homepage Styles ==================== */
.tj-homepage {
    min-height: 100vh;
    background: radial-gradient(circle at 85% 0%, rgba(37, 99, 235, 0.08), transparent 40%), #f7faff;
}

html,
body {
    overflow-x: hidden;
}

body.tj-mobile-menu-open {
    overflow: hidden;
}

/* Hero Section */
.tj-hero {
    padding: 5.5rem 0;
    background: linear-gradient(145deg, #ffffff 0%, #f0f6ff 55%, #eaf2ff 100%);
    position: relative;
    overflow: hidden;
}

.tj-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.tj-hero .tj-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.tj-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--tj-text-primary);
    margin-bottom: 1.5rem;
}

.tj-hero-subtitle {
    font-size: 1.25rem;
    color: var(--tj-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tj-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tj-hero-image {
    position: relative;
}

.tj-hero-dashboard-preview {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.tj-preview-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe7ff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.12);
}

.tj-preview-card::after {
    content: '';
    position: absolute;
    inset: auto 12% -18% 12%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.25), transparent 70%);
}

.tj-preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tj-preview-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tj-preview-label {
    font-size: 0.875rem;
    color: var(--tj-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tj-preview-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tj-text-primary);
}

.tj-preview-value.positive {
    color: var(--tj-success);
}

.tj-preview-chart {
    height: 200px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    border-radius: var(--tj-radius);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.tj-preview-chart svg {
    width: 100%;
    height: 100%;
}

/* Onboarding Section */
.tj-onboarding {
    padding: 0 0 2.5rem;
}

.tj-onboarding-card {
    background: #ffffff;
    border: 1px solid #dbe7ff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.08);
}

.tj-onboarding-title {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: 1.25rem;
}

.tj-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.tj-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem;
    text-decoration: none;
    border: 1px solid #dbe7ff;
    border-radius: 12px;
    background: #f8fbff;
    transition: all 0.2s ease;
}

.tj-step:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.tj-step-no {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.tj-step strong {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.tj-step p {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.4;
}

/* Features Section */
.tj-features {
    padding: 5rem 0;
    background: transparent;
}

.tj-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.tj-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tj-text-primary);
    margin-bottom: 1rem;
}

.tj-section-subtitle {
    font-size: 1.125rem;
    color: var(--tj-text-secondary);
}

.tj-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tj-feature-card {
    padding: 2rem;
    background: var(--tj-bg-primary);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius-lg);
    transition: var(--tj-transition);
}

.tj-feature-card:hover {
    border-color: var(--tj-primary-light);
    box-shadow: var(--tj-shadow-lg);
    transform: translateY(-4px);
}

.tj-feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tj-radius-lg);
    margin-bottom: 1.5rem;
}

.tj-feature-icon-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--tj-primary);
}

.tj-feature-icon-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--tj-success);
}

.tj-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tj-text-primary);
    margin-bottom: 0.75rem;
}

.tj-feature-description {
    font-size: 0.9375rem;
    color: var(--tj-text-secondary);
    line-height: 1.6;
}

/* Stats Section */
.tj-stats-section {
    padding: 4rem 0;
    background: var(--tj-primary);
    color: white;
}

.tj-stats-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.tj-stat-item {
    text-align: center;
}

.tj-stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.tj-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* CTA Section */
.tj-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--tj-primary) 0%, var(--tj-primary-dark) 100%);
    color: white;
    text-align: center;
}

.tj-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tj-cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ==================== Footer Styles ==================== */
.tj-footer {
    background: var(--tj-bg-tertiary);
    padding: 4rem 0 2rem;
    color: var(--tj-text-secondary);
}

.tj-footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--tj-border);
}

.tj-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.tj-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tj-footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tj-footer-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tj-footer-social {
    display: flex;
    gap: 0.75rem;
}

.tj-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tj-bg-primary);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    color: var(--tj-text-secondary);
    transition: var(--tj-transition);
}

.tj-social-link:hover {
    background: var(--tj-primary);
    border-color: var(--tj-primary);
    color: white;
    transform: translateY(-2px);
}

.tj-footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tj-text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tj-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tj-footer-links li {
    margin-bottom: 0.75rem;
}

.tj-footer-links a {
    color: var(--tj-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--tj-transition);
}

.tj-footer-links a:hover {
    color: var(--tj-primary);
}

.tj-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}

.tj-footer-copyright {
    font-size: 0.875rem;
}

.tj-footer-meta {
    font-size: 0.875rem;
}

/* ==================== Page Content Styles ==================== */
.tj-main-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.tj-page-article {
    background: var(--tj-bg-primary);
    border-radius: var(--tj-radius-lg);
    overflow: hidden;
}

.tj-page-header {
    padding: 3rem 0 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--tj-bg-secondary) 0%, var(--tj-bg-primary) 100%);
}

.tj-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tj-text-primary);
    margin-bottom: 1rem;
}

.tj-page-excerpt {
    font-size: 1.125rem;
    color: var(--tj-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.tj-page-content {
    padding: 3rem 0;
}

.tj-page-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--tj-text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.tj-page-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--tj-text-primary);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.tj-page-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--tj-text-secondary);
    margin-bottom: 1rem;
}

.tj-page-content ul,
.tj-page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.tj-page-content li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--tj-text-secondary);
    margin-bottom: 0.5rem;
}

.tj-page-content a {
    color: var(--tj-primary);
    text-decoration: none;
    transition: var(--tj-transition);
}

.tj-page-content a:hover {
    color: var(--tj-primary-dark);
    text-decoration: underline;
}

.tj-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--tj-radius);
    margin: 1.5rem 0;
}

.tj-page-content blockquote {
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: var(--tj-bg-secondary);
    border-left: 4px solid var(--tj-primary);
    border-radius: var(--tj-radius);
}

.tj-page-content code {
    padding: 0.25rem 0.5rem;
    background: var(--tj-bg-secondary);
    border-radius: var(--tj-radius);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.tj-page-content pre {
    padding: 1rem;
    background: var(--tj-bg-tertiary);
    border-radius: var(--tj-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.tj-page-content pre code {
    background: none;
    padding: 0;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .tj-hero .tj-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tj-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .tj-hero-title {
        font-size: 2.5rem;
    }
    
    .tj-hero-actions {
        justify-content: center;
    }
    
    .tj-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tj-stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .tj-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .tj-hero {
        padding: 3rem 0;
    }

    .tj-steps {
        grid-template-columns: 1fr;
    }
    
    .tj-hero-title {
        font-size: 2rem;
    }
    
    .tj-hero-subtitle {
        font-size: 1rem;
    }
    
    .tj-features-grid {
        grid-template-columns: 1fr;
    }
    
    .tj-stats-wrapper {
        grid-template-columns: 1fr;
    }
    
    .tj-stat-number {
        font-size: 2rem;
    }
    
    .tj-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .tj-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
