:root {
    --alj-primary: #0284c7;
    --alj-primary-hover: #0369a1;
    --alj-primary-subtle: rgba(2, 132, 199, 0.1);
    --alj-accent: #10b981;
    --alj-sky: #38bdf8;
    --alj-warning: #f59e0b;
    --alj-body-bg: #030712;
    --alj-card-bg: #0b1329;
    --alj-border: rgba(255, 255, 255, 0.08);
    --alj-text-main: #f8fafc;
    --alj-text-muted: #94a3b8;
    --alj-topbar-bg: #030712;
    --alj-topbar-text: #94a3b8;
    --alj-header-bg: #060b18;
    --alj-hero-gradient: linear-gradient(180deg, #030712 0%, #060b18 50%, #091226 100%);
}

[data-bs-theme="dark"] {
    --alj-primary: #0284c7;
    --alj-primary-hover: #0369a1;
    --alj-primary-subtle: rgba(2, 132, 199, 0.1);
    --alj-accent: #10b981;
    --alj-sky: #38bdf8;
    --alj-warning: #fbbf24;
    --alj-body-bg: #030712;
    --alj-card-bg: #0b1329;
    --alj-border: rgba(255, 255, 255, 0.08);
    --alj-text-main: #f8fafc;
    --alj-text-muted: #94a3b8;
    --alj-topbar-bg: #030712;
    --alj-topbar-text: #94a3b8;
    --alj-header-bg: #060b18;
    --alj-hero-gradient: linear-gradient(180deg, #030712 0%, #060b18 50%, #091226 100%);
}

[data-bs-theme="light"] {
    --alj-primary: #0284c7;
    --alj-primary-hover: #0369a1;
    --alj-primary-subtle: rgba(2, 132, 199, 0.08);
    --alj-accent: #10b981;
    --alj-sky: #0284c7;
    --alj-warning: #d97706;
    --alj-body-bg: #f8fafc;
    --alj-card-bg: #ffffff;
    --alj-border: #e2e8f0;
    --alj-text-main: #0f172a;
    --alj-text-muted: #64748b;
    --alj-topbar-bg: #090e1a;
    --alj-topbar-text: #94a3b8;
    --alj-header-bg: #ffffff;
    --alj-hero-gradient: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--alj-body-bg);
    color: var(--alj-text-main);
    transition: background-color 0.25s ease, color 0.25s ease;
    letter-spacing: -0.01em;
}

.portal-topbar {
    background: #030712 !important;
    background-color: #030712 !important;
    color: #94a3b8;
    font-size: 0.8125rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-topbar a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portal-topbar a:hover {
    color: #ffffff;
}

.topbar-control {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-control:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.currency-select-box {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.currency-select-box select {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px 26px 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.currency-select-box select:focus {
    outline: none;
    border-color: #0284c7;
    background: rgba(255, 255, 255, 0.12);
}

.currency-select-box select option {
    background: #0b1329;
    color: #f8fafc;
}

.currency-select-arrow {
    position: absolute;
    right: 8px;
    pointer-events: none;
    font-size: 0.7rem;
    color: #94a3b8;
}

.btn-client-access,
.btn-portal-login {
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: 1px solid #3b82f6 !important;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.btn-client-access:hover,
.btn-portal-login:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
}

.btn-portal-register {
    background: rgba(56, 189, 248, 0.08) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-portal-register:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.portal-header {
    background: #060b18 !important;
    background-color: #060b18 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-bs-theme="light"] .portal-header {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.portal-nav.navbar,
.portal-header .navbar,
.portal-nav {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    text-decoration: none;
}

[data-bs-theme="light"] .portal-brand {
    background: transparent;
    border: none;
    padding: 6px 0;
}

.portal-brand:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.portal-brand-img {
    height: 38px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.portal-nav .nav-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: #f1f5f9 !important;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="light"] .portal-nav .nav-link {
    color: #0f172a !important;
}

.portal-nav .nav-link:hover, 
.portal-nav .nav-item.show .nav-link {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.08) !important;
    transform: translateY(-1px);
}

[data-bs-theme="light"] .portal-nav .nav-link:hover,
[data-bs-theme="light"] .portal-nav .nav-item.show .nav-link {
    color: #0284c7 !important;
    background: #f1f5f9 !important;
}

.portal-nav .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.portal-nav .nav-link:hover i {
    transform: scale(1.15);
}

.portal-nav .nav-link.btn-nav-contact {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    padding: 7px 16px;
    font-weight: 700;
    border-radius: 8px;
    margin-left: 8px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.portal-nav .nav-link.btn-nav-contact:hover {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.portal-nav .dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75) !important;
    padding: 8px;
    min-width: 260px;
    background-color: #0a1124 !important;
    margin-top: 6px;
    backdrop-filter: blur(16px);
}

[data-bs-theme="light"] .portal-nav .dropdown-menu {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.portal-nav .dropdown-item {
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.84rem;
    color: #f1f5f9 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}

[data-bs-theme="light"] .portal-nav .dropdown-item {
    color: #0f172a !important;
}

.portal-nav .dropdown-item:hover {
    background-color: rgba(56, 189, 248, 0.1) !important;
    color: #38bdf8 !important;
    transform: translateX(3px);
}

[data-bs-theme="light"] .portal-nav .dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: #0284c7 !important;
}

.portal-nav .dropdown-item i {
    font-size: 1.05rem;
    margin-right: 8px;
}

.hero-section {
    background: var(--alj-hero-gradient);
    color: #ffffff;
    padding: 55px 0 65px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-carousel-item {
    padding: 10px 0 25px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 680px;
}

.btn-hero-primary {
    background: #0284c7;
    color: #ffffff;
    border: 1px solid #0284c7;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-hero-primary:hover {
    background: #0369a1;
    border-color: #0369a1;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}

.carousel-indicators-custom {
    position: static;
    margin-top: 15px;
    margin-bottom: 0;
    gap: 8px;
}

.carousel-indicators-custom button {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background-color: rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}

.carousel-indicators-custom button.active {
    width: 38px;
    background-color: #38bdf8;
}

.domain-search-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px;
    max-width: 650px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4);
}

.domain-search-card input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.92rem;
    padding: 8px 14px;
}

.domain-search-card input:focus {
    outline: none;
    box-shadow: none;
    color: #ffffff;
    background: transparent;
}

.domain-search-card input::placeholder {
    color: #64748b;
}

.domain-search-card .btn-search {
    background: #0284c7;
    color: #ffffff;
    border: 1px solid #0284c7;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

.domain-search-card .btn-search:hover {
    background: #0369a1;
    border-color: #0369a1;
    color: #ffffff;
    transform: translateY(-1px);
}

.category-tab-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0b1329;
    color: #94a3b8;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tab-btn:hover {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
    color: #38bdf8;
    transform: translateY(-1px);
}

.category-tab-btn.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.plan-card {
    background: var(--alj-card-bg);
    border: 1px solid var(--alj-border);
    border-radius: 10px;
    padding: 20px 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    border-color: #334155;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.35);
}

.plan-card.featured {
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: #0f2744;
    color: #38bdf8;
    border: 1px solid #0284c7;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #f8fafc;
    line-height: 1.3;
}

.plan-price-wrap {
    margin: 12px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--alj-border);
}

.price-currency {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    vertical-align: top;
    margin-right: 2px;
}

.price-number {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-left: 4px;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    flex-grow: 1;
}

.plan-features-list li {
    font-size: 0.78rem;
    color: #cbd5e1;
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.plan-features-list li i {
    color: #10b981;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.btn-plan-action {
    background: #192231;
    color: #e2e8f0;
    border: 1px solid #2d3b4f;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 9px 12px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.btn-plan-action:hover {
    background: #243247;
    border-color: #3e516d;
    color: #ffffff;
    transform: translateY(-1px);
}

.plan-card.featured .btn-plan-action {
    background: #0f2847;
    color: #7dd3fc;
    border: 1px solid #0284c7;
    font-weight: 700;
}

.plan-card.featured .btn-plan-action:hover {
    background: #0369a1;
    border-color: #0369a1;
    color: #ffffff;
    transform: translateY(-1px);
}

.portal-footer {
    background: #060912;
    color: #94a3b8;
    padding: 50px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-footer h5 {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.portal-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-footer ul li {
    margin-bottom: 8px;
}

.portal-footer ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.15s ease;
}

.portal-footer ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 22px;
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
}

/* Mobile Responsive Design */
@media (max-width: 991.98px) {
    .portal-nav {
        padding: 8px 0;
    }
    .portal-nav .navbar-collapse {
        background-color: #0d1527;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 16px;
        margin-top: 10px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }
    .portal-nav .nav-link {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .portal-nav .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
        margin: 6px 0 10px 10px;
        border-radius: 8px;
    }
    .portal-nav .dropdown-item {
        padding: 8px 12px;
    }
}

@media (max-width: 767.98px) {
    .portal-topbar {
        padding: 6px 0;
        font-size: 0.75rem;
    }
    .portal-brand-img {
        height: 36px;
        max-width: 160px;
    }
    .hero-section {
        padding: 35px 0 45px;
    }
    .hero-carousel-item {
        padding: 5px 0 15px;
    }
    .hero-title {
        font-size: 1.65rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }
    .hero-badge {
        font-size: 0.72rem;
        padding: 4px 12px;
        margin-bottom: 14px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 0.85rem;
        padding: 9px 16px;
        width: 100%;
        justify-content: center;
    }
    .domain-search-card {
        padding: 8px;
        border-radius: 8px;
    }
    .domain-search-card form {
        flex-direction: column;
        gap: 8px;
    }
    .domain-search-card input {
        width: 100%;
        height: 42px;
        font-size: 0.875rem;
    }
    .domain-search-card .btn-search {
        width: 100%;
        height: 42px;
        justify-content: center;
    }
    .category-tab-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    .plan-card {
        padding: 18px 16px;
        border-radius: 10px;
        margin-bottom: 8px;
    }
    .plan-title {
        font-size: 1.1rem;
    }
    .price-number {
        font-size: 2rem;
    }
    .btn-plan-action {
        height: 44px;
        font-size: 0.85rem;
    }
    .portal-footer {
        padding: 35px 0 20px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding-top: 16px;
        margin-top: 25px;
    }
}
