/* ============================================================
 * Custom CSS — Beego Master Project
 * File ini adalah satu-satunya custom CSS yang diizinkan.
 * Untuk page normal (layout _base.html), WAJIB pakai Metronic classes.
 * Custom CSS hanya untuk halaman STANDALONE (login, dll).
 * ============================================================ */

/* ============================================================
 * Auth / Login Page
 * ============================================================ */
.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #071437;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    margin: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.login-logo {
    text-align: center;
    margin-bottom: 28px;
}
.login-logo .brand {
    font-size: 26px;
    font-weight: 800;
    color: #071437;
    text-decoration: none;
}
.login-logo p {
    font-size: 13px;
    color: #99A1B7;
    margin: 6px 0 0;
}
.login-title {
    text-align: center;
    margin-bottom: 24px;
}
.login-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: #071437;
    margin: 0 0 4px;
}
.login-title p {
    font-size: 13px;
    color: #99A1B7;
    margin: 0;
}
.login-input {
    position: relative;
    margin-bottom: 16px;
}
.login-input i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #B5B5C3;
    font-size: 18px;
}
.login-input input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1.5px solid #E1E3EA;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border .2s;
    background: #FAFAFA;
    box-sizing: border-box;
}
.login-input input:focus {
    border-color: #1B84FF;
    background: #fff;
}
.login-input input::placeholder {
    color: #B5B5C3;
}
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #071437;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
.login-btn:hover { background: #1B2559; }
.login-btn:active { transform: scale(.99); }
.login-btn.loading { opacity: .7; pointer-events: none; }
.login-error {
    background: #FFF5F8;
    border: 1px solid #F1416C;
    color: #F1416C;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}
.login-success {
    background: #E8FFF3;
    border: 1px solid #17C653;
    color: #0BB746;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #99A1B7;
}
.login-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 12px;
}
.login-links a { color: #B5B5C3; text-decoration: none; }
.login-links a:hover { color: #1B84FF; }
.login-copy {
    text-align: center;
    margin-top: 24px;
    font-size: 11px;
    color: #B5B5C3;
}

/* ============================================================
 * Landing Page — deenspace "Coming Soon"
 * ============================================================ */

/* --- Variables --- */
:root {
    --ds-primary: #0D9488;
    --ds-primary-dark: #0F766E;
    --ds-primary-deeper: #134E4A;
    --ds-hero-bg: #042F2E;
    --ds-hero-gradient: linear-gradient(160deg, #042F2E 0%, #0F766E 50%, #0D9488 100%);
    --ds-accent: #D4A843;
    --ds-accent-light: #FEFCE8;
    --ds-text: #0F172A;
    --ds-text-muted: #64748B;
    --ds-text-light: #94A3B8;
    --ds-surface: #FFFFFF;
    --ds-bg: #F0FDFA;
    --ds-bg-alt: #F8FAFC;
    --ds-border: #E2E8F0;
    --ds-radius: 16px;
    --ds-radius-sm: 10px;
}

/* --- Body --- */
.landing-body {
    margin: 0;
    background: var(--ds-bg);
    color: var(--ds-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Container --- */
.landing-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Nav --- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(4, 47, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.landing-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.landing-brand {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.landing-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.landing-nav-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
}

/* --- Hero --- */
.landing-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-hero-gradient);
    overflow: hidden;
    padding: 80px 24px 60px;
}
.landing-hero-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.landing-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
}

/* Badge */
.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--ds-accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}
.landing-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ds-accent);
    animation: landing-pulse 2s ease-in-out infinite;
}
@keyframes landing-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Hero Title */
.landing-hero-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -1px;
}
.landing-hero-highlight {
    color: var(--ds-accent);
}
.landing-hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 auto 36px;
    max-width: 520px;
}

/* Hero CTA */
.landing-hero-cta {
    margin-bottom: 24px;
}
.landing-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--ds-accent);
    color: #1C1917;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--ds-radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.landing-btn-primary:hover {
    background: #C9982E;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
    color: #1C1917;
}
.landing-btn-primary:active {
    transform: translateY(0);
}

.landing-hero-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* Scroll indicator */
.landing-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}
.landing-scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    border-radius: 2px;
    animation: landing-scroll-anim 2s ease-in-out infinite;
}
@keyframes landing-scroll-anim {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.3; height: 24px; }
}

/* --- Features Section --- */
.landing-features {
    padding: 100px 0 80px;
    background: var(--ds-surface);
}
.landing-section-header {
    text-align: center;
    margin-bottom: 56px;
}
.landing-section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ds-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.landing-section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--ds-text);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.landing-section-desc {
    font-size: 17px;
    color: var(--ds-text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* Features Grid */
.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .landing-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .landing-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Feature Card */
.landing-feature-card {
    background: var(--ds-bg-alt);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    padding: 32px 28px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(24px);
}
.landing-feature-card.landing-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.landing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.08);
}

/* MVP Highlight Card */
.landing-feature-highlight {
    background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
    border-color: #99F6E4;
    grid-column: span 1;
}
@media (min-width: 1025px) {
    .landing-feature-highlight {
        grid-row: span 2;
    }
}
.landing-feature-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--ds-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.landing-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ds-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.landing-feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ds-text);
    margin: 0 0 10px;
}
.landing-feature-desc {
    font-size: 15px;
    color: var(--ds-text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}
.landing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.landing-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ds-text);
    font-weight: 500;
}
.landing-feature-list li i {
    color: var(--ds-primary);
    font-size: 16px;
    flex-shrink: 0;
}

/* --- Values Section --- */
.landing-values {
    padding: 80px 0;
    background: var(--ds-bg);
}
.landing-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 768px) {
    .landing-values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
.landing-value-item {
    opacity: 0;
    transform: translateY(24px);
}
.landing-value-item.landing-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.landing-value-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--ds-primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 12px;
}
.landing-value-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ds-text);
    margin: 0 0 8px;
}
.landing-value-desc {
    font-size: 15px;
    color: var(--ds-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- CTA Section --- */
.landing-cta {
    padding: 80px 0;
    background: var(--ds-hero-gradient);
}
.landing-cta-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.landing-cta-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.landing-cta-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 32px;
}
.landing-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Footer --- */
.landing-footer {
    padding: 32px 0;
    background: var(--ds-hero-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.landing-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.landing-footer-brand p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin: 4px 0 0;
}
.landing-footer-brand .landing-brand {
    font-size: 18px;
}
.landing-footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}
@media (max-width: 640px) {
    .landing-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .landing-badge-dot,
    .landing-scroll-line {
        animation: none;
    }
    .landing-feature-card,
    .landing-value-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
 * Sidebar Layout (Halaman Standalone dengan sidebar)
 * ============================================================ */
.billing-sidebar { width: 250px; min-height: 100vh; position: fixed; left: 0; top: 0; z-index: 50; }
.billing-main { margin-left: 250px; min-height: 100vh; }
@media (max-width: 991px) {
    .billing-sidebar { display: none !important; }
    .billing-sidebar.show { display: flex !important; }
    .billing-main { margin-left: 0; }
}
