/* ==============================================================================
   TranslateBeam TDN SaaS - Modern Unified Styling
   Platform: https://translatebeam.com
   ============================================================================== */

:root {
    --bg-primary: #090d16;
    --bg-surface: #0f172a;
    --bg-surface-elevated: #1e293b;
    --border-color: #334155;
    --border-focus: #38bdf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --brand-primary: #0284c7;
    --brand-accent: #38bdf8;
    --brand-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--brand-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #7dd3fc;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-logo svg {
    color: var(--brand-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(2, 132, 199, 0.39);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: #334155;
    color: #fff;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}
.btn-danger:hover {
    background: #ef4444;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Cards & Panels */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.18);
}

.card .card-img-wrap {
    overflow: hidden;
}

.card .card-img-wrap img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-img-wrap img {
    transform: scale(1.03);
}

.card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hero Section (Open 2-Column Layout, No Enclosing Card Box) */
.hero-section {
    padding: 3rem 0 1rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hero-text-col {
    text-align: left;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title {
    text-align: left;
    font-size: clamp(1.85rem, 2.6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-title-main {
    display: block;
    color: #ffffff;
    font-weight: 800;
}

.hero-title-slogan {
    display: block;
    color: #38bdf8;
    font-size: clamp(1.12rem, 1.68vw, 1.62rem);
    font-weight: 700;
    margin-top: 0.45rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* 2-Line Section Headers (One Bigger, One Small) */
.section-title-main {
    display: block;
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.section-title-sub {
    display: block;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 700;
    color: #38bdf8;
    margin-top: 0.4rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hero-subtitle {
    text-align: left;
    font-size: 1.02rem;
    font-weight: 400;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 0 2rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-side-illustration {
    width: 100%;
    max-width: 530px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: #070c1b;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 35px rgba(56, 189, 248, 0.12);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.hero-side-illustration:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.8), 0 0 50px rgba(56, 189, 248, 0.35);
}

.hero-side-illustration img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.35s ease;
}

.hero-side-illustration:hover img {
    filter: brightness(1.06) saturate(1.05);
}

@media (max-width: 1150px) {
    .hero-title-slogan {
        font-size: clamp(1rem, 1.45vw, 1.35rem);
    }
    .hero-side-illustration {
        max-width: 440px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-text-col, .hero-title, .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-title-slogan {
        white-space: normal;
        font-size: 1.35rem;
    }
    .hero-badge {
        margin: 0 auto 1.25rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-side-illustration {
        max-width: 480px;
    }
}

/* Live URL Preview Bar */
.preview-tester-box {
    max-width: 860px;
    margin: 0 auto 3rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 1.35rem;
    border-radius: 14px;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.preview-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.input-control, select.input-control {
    flex: 1;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}

.input-control:focus {
    border-color: var(--brand-accent);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Features Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    border-radius: 12px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-card:hover {
    border-color: rgba(56, 189, 248, 0.75);
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* Pricing Cards */
.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 22px 40px -5px rgba(0, 0, 0, 0.65), 0 0 30px rgba(56, 189, 248, 0.22);
}

.pricing-card.popular {
    border-color: var(--brand-accent);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
}

.pricing-card.popular:hover {
    border-color: #60a5fa;
    box-shadow: 0 25px 45px -5px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.35);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.price-val {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-list {
    list-style: none;
    margin: 1.75rem 0;
    flex: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
}

.feature-list li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Portal & Dashboard */
.portal-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    flex-shrink: 0;
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.15s;
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--bg-surface-elevated);
    color: var(--brand-accent);
}

.portal-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-primary);
    overflow-y: auto;
}

/* Progress bar */
.progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar-fill {
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

table.data-table th {
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

table.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

table.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-info { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Alerts / Flash Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Hero Image Interactive Showcase & Glow Highlight */
.hero-image-showcase {
    max-width: 820px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: #0b1329;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.12);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease;
    cursor: pointer;
    position: relative;
}

.hero-image-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(56, 189, 248, 0);
    transition: box-shadow 0.4s ease;
}

.hero-image-showcase:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.85);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 
                0 0 50px rgba(56, 189, 248, 0.45), 
                0 0 90px rgba(2, 132, 199, 0.25);
}

.hero-image-showcase:hover::after {
    box-shadow: inset 0 0 30px rgba(56, 189, 248, 0.2);
}

.hero-image-showcase img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-showcase:hover img {
    transform: scale(1.015);
}

@media (max-width: 768px) {
    .portal-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .nav-links {
        display: none;
    }
}
