/* ============================================================
   AXAJA PLANNER — Refined luxury design system
   Cinzel display + Manrope body | Navy + Gold + Silver
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;900&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

:root {
    /* === Navy palette (warmer, ocean-deep) === */
    --navy-900: #050d1c;
    --navy-800: #0a1d38;
    --navy-700: #0d2548;
    --navy-600: #142e52;
    --navy-500: #1a3a5c;
    --navy-400: #244668;
    --navy-card: #112444;
    --navy-card-hover: #1a3055;

    /* === Gold palette (warmer, amber-tinted to match logo) === */
    --gold-100: #fef5dc;
    --gold-200: #f5d784;
    --gold-300: #e0b550;
    --gold-400: #d4a234;
    --gold-500: #b8891f;
    --gold-600: #8a6515;
    --gold-700: #5e4810;

    /* === Sunset palette (NEW — accent from logo sunset) === */
    --sunset-200: #ffd4a8;
    --sunset-300: #ffa86b;
    --sunset-400: #ff8c42;
    --sunset-500: #e07028;

    /* === Ocean shine (NEW — electric blue from logo water) === */
    --ocean-300: #5fa8e0;
    --ocean-400: #4a8fc8;
    --ocean-500: #2a6db8;

    /* === Silver palette (slightly warmer, cream-tinted) === */
    --silver-100: #f8f5ee;
    --silver-200: #ece8dc;
    --silver-300: #d4d0c0;
    --silver-400: #b8b4a4;
    --silver-500: #948e7e;
    --silver-600: #6f6a5c;

    /* === Text === */
    --text-primary: #ece6d4;
    --text-secondary: #9eb0c8;
    --text-muted: #607590;
    --text-disabled: #3d4a63;

    /* === Accents === */
    --accent-blue: #4a8fc8;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-orange: #ff8c42;
    --accent-purple: #a855f7;

    /* === Glass === */
    --glass: rgba(17, 36, 68, 0.78);
    --glass-strong: rgba(17, 36, 68, 0.92);
    --glass-border: rgba(212, 162, 52, 0.22);
    --glass-border-hover: rgba(212, 162, 52, 0.42);

    /* === Shadows === */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 24px rgba(212, 162, 52, 0.22);
    --shadow-gold-lg: 0 8px 40px rgba(212, 162, 52, 0.38);
    --shadow-sunset: 0 4px 24px rgba(255, 140, 66, 0.25);
    --shadow-inner: inset 0 1px 2px rgba(0, 0, 0, 0.4);

    /* === Gradients === */
    --grad-gold: linear-gradient(135deg, #8a6515 0%, #d4a234 35%, #f5d784 65%, #d4a234 100%);
    --grad-gold-shine: linear-gradient(110deg,
        #5e4810 0%,
        #d4a234 25%,
        #fef5dc 50%,
        #d4a234 75%,
        #5e4810 100%);
    --grad-sunset: linear-gradient(135deg, #ff8c42 0%, #ffa86b 50%, #ffd4a8 100%);
    --grad-silver: linear-gradient(135deg, #6f6a5c 0%, #b8b4a4 50%, #ece8dc 100%);
    --grad-mixed: linear-gradient(110deg,
        #8a6515 0%,
        #d4a234 18%,
        #f5d784 32%,
        #ffd4a8 50%,
        #f5d784 68%,
        #d4a234 82%,
        #8a6515 100%);
    --grad-ocean: linear-gradient(180deg, #0a1d38 0%, #142e52 50%, #1a3a5c 100%);

    /* === Easings === */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    background: var(--navy-800);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    letter-spacing: -0.005em;
}

/* === Atmospheric background layers === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 1400px 900px at 10% 5%, rgba(255, 140, 66, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 1100px 700px at 90% 80%, rgba(74, 143, 200, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 800px 600px at 50% 50%, rgba(212, 162, 52, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 35%, #112c4d 70%, var(--navy-700) 100%);
    pointer-events: none;
    z-index: -2;
}

/* Subtle grain texture for luxury feel */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.65 0 0 0 0 0.2 0 0 0 0.045 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: overlay;
}

/* ============================================================
   APP LAYOUT
   ============================================================ */

.app-container {
    position: relative;
    z-index: 1;
    max-width: 1620px;
    margin: 0 auto;
    padding: 24px;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 22px 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 100;
    /* overflow je sad visible (bilo hidden) da dropdown jezika ne bude odsiječen */
    animation: rise 0.7s var(--ease-out) both;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(212, 162, 52, 0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(212, 162, 52, 0.6) 30%,
        rgba(232, 233, 236, 0.4) 50%,
        rgba(212, 162, 52, 0.6) 70%,
        transparent);
    animation: shimmer-line 6s linear infinite;
    background-size: 200% 100%;
    z-index: 0;
}

@keyframes shimmer-line {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.logo-container {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--gold-400);
    box-shadow:
        0 0 32px rgba(212, 162, 52, 0.35),
        0 0 60px rgba(255, 140, 66, 0.12),
        inset 0 0 14px rgba(212, 162, 52, 0.12);
    background: var(--navy-700);
    transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease-out);
    flex-shrink: 0;
}

.logo-container:hover {
    transform: rotate(-3deg) scale(1.05);
    box-shadow:
        0 0 48px rgba(212, 162, 52, 0.5),
        0 0 80px rgba(255, 140, 66, 0.2),
        inset 0 0 14px rgba(212, 162, 52, 0.15);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Subtle animated glow behind logo */
.logo-glow {
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    background: radial-gradient(circle at center,
        rgba(212, 162, 52, 0.35) 0%,
        rgba(255, 140, 66, 0.15) 40%,
        transparent 70%);
    z-index: -1;
    opacity: 0;
    animation: logo-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logo-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Cinzel', serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 6px;
    line-height: 1;
    background: var(--grad-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer-text 4s linear infinite;
    text-shadow: 0 0 40px rgba(212, 162, 52, 0.25);
}

.logo-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 400;
    color: var(--silver-400);
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-top: 6px;
    opacity: 0.85;
}

@keyframes shimmer-text {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    padding: 11px 22px;
    border: none;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-gold {
    background: var(--grad-gold);
    background-size: 200% 200%;
    color: var(--navy-800);
    box-shadow: 0 4px 16px rgba(212, 162, 52, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 162, 52, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background-position: 100% 100%;
}

.btn-gold:hover::before { transform: translateX(100%); }

.btn-silver {
    background: var(--grad-silver);
    background-size: 200% 200%;
    color: var(--navy-800);
    box-shadow: 0 4px 16px rgba(184, 180, 164, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.btn-silver:hover {
    transform: translateY(-2px);
    background-position: 100% 100%;
    box-shadow: 0 8px 28px rgba(184, 180, 164, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gold-300);
    border: 1px solid var(--glass-border-hover);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(212, 162, 52, 0.08);
    border-color: var(--gold-400);
    color: var(--gold-200);
    box-shadow: 0 0 18px rgba(212, 162, 52, 0.18);
}

.btn-navy {
    background: var(--navy-500);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-navy:hover {
    background: var(--navy-400);
    border-color: var(--gold-400);
    color: var(--gold-200);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

/* ============================================================
   LANGUAGE SELECTOR
   ============================================================ */

.lang-selector { position: relative; }

.lang-btn {
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    color: var(--gold-300);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--ease-out);
    font-family: 'Manrope', sans-serif;
}

.lang-btn:hover {
    border-color: var(--gold-400);
    color: var(--gold-200);
    box-shadow: 0 0 16px rgba(212, 162, 52, 0.18);
}

.lang-flag {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--glass-strong);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px;
    min-width: 240px;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s var(--ease-out);
    z-index: 1000;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s var(--ease-out);
}

.lang-option:hover {
    background: rgba(212, 162, 52, 0.08);
    color: var(--gold-200);
    transform: translateX(2px);
}

.lang-option.active {
    background: rgba(212, 162, 52, 0.15);
    color: var(--gold-300);
}

/* ============================================================
   BADGES & INDICATORS
   ============================================================ */

.license-badge {
    padding: 7px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 1px solid;
    font-family: 'Manrope', sans-serif;
}

.license-free {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.license-pro {
    background: var(--grad-gold);
    color: var(--navy-800);
    border-color: var(--gold-400);
    box-shadow: 0 0 16px rgba(212, 162, 52, 0.3);
}

.license-forever {
    background: var(--grad-mixed);
    background-size: 200% 200%;
    color: var(--navy-800);
    border-color: var(--gold-400);
    box-shadow: 0 0 20px rgba(212, 162, 52, 0.4);
    animation: shimmer-text 5s linear infinite;
}

.license-expired,
.license-locked {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.35);
}

.sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 8px 14px;
    background: var(--navy-card);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    font-weight: 500;
}

.sync-indicator.syncing { color: var(--gold-300); }

.sync-indicator.syncing::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--gold-400);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.sync-indicator.offline {
    color: var(--accent-orange);
    border-color: rgba(245, 158, 11, 0.3);
}

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

/* ============================================================
   AD BANNER (skriveni prostor za reklame)
   ============================================================ */

.ad-slot {
    display: none;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    animation: rise 0.6s var(--ease-out);
}

.ad-slot.visible { display: block; }

.ad-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.ad-banner:hover { background: rgba(212, 162, 52, 0.04); }

.ad-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content { flex: 1; min-width: 0; }

.ad-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-200);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.ad-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.ad-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-300);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(212, 162, 52, 0.1);
    border: 1px solid rgba(212, 162, 52, 0.25);
    transition: all 0.2s;
}

.ad-cta:hover {
    background: rgba(212, 162, 52, 0.2);
    color: var(--gold-100);
}

.ad-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.ad-close:hover {
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
}

.ad-label {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* ============================================================
   MAIN GRID
   ============================================================ */

.main-grid {
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1300px) {
    .main-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    animation: rise 0.7s var(--ease-out) both;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(212, 162, 52, 0.5) 50%,
        transparent);
    opacity: 0.6;
}

.card:hover {
    border-color: var(--glass-border-hover);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-300);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.card-title .icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(212, 162, 52, 0.08);
    border: 1px solid rgba(212, 162, 52, 0.18);
    flex-shrink: 0;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger animation for cards */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.25s; }

/* ============================================================
   CALENDAR
   ============================================================ */

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.calendar-nav h2 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2.5px;
    background: var(--grad-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer-text 6s linear infinite;
}

.calendar-nav button {
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    color: var(--gold-300);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav button:hover {
    border-color: var(--gold-400);
    background: rgba(212, 162, 52, 0.08);
    color: var(--gold-200);
    transform: scale(1.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    color: var(--silver-500);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 4px;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    position: relative;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    background: var(--navy-card);
    border: 1px solid transparent;
    font-size: 14px;
    color: var(--text-primary);
}

.calendar-day:hover {
    border-color: var(--gold-400);
    background: var(--navy-card-hover);
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(212, 162, 52, 0.18);
    z-index: 5;
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(212, 162, 52, 0.22), rgba(212, 162, 52, 0.1));
    border-color: var(--gold-400);
    color: var(--gold-200);
    font-weight: 700;
    box-shadow: 0 0 16px rgba(212, 162, 52, 0.2);
}

.calendar-day.selected {
    border-color: var(--gold-400);
    background: rgba(212, 162, 52, 0.18);
    box-shadow: 0 0 20px rgba(212, 162, 52, 0.25);
}

.calendar-day.other-month { opacity: 0.22; }

.day-dots {
    position: absolute;
    bottom: 5px;
    display: flex;
    gap: 3px;
}

.day-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.day-dot.task { background: var(--accent-green); color: var(--accent-green); }
.day-dot.meeting { background: var(--gold-400); color: var(--gold-400); }
.day-dot.personal { background: var(--accent-blue); color: var(--accent-blue); }

/* ============================================================
   EVENTS
   ============================================================ */

.event-item {
    background: var(--navy-card);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-left: 3px solid var(--gold-400);
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.event-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 162, 52, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.event-item:hover::before { opacity: 1; }
.event-item:hover { transform: translateX(4px); }

.event-item.task { border-left-color: var(--accent-green); }
.event-item.meeting { border-left-color: var(--gold-400); }
.event-item.personal { border-left-color: var(--accent-blue); }

.event-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gold-300);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.event-title {
    font-weight: 700;
    margin: 6px 0;
    color: var(--text-primary);
    font-size: 15px;
}

.event-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.event-author {
    font-size: 11px;
    color: var(--silver-400);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.event-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

.event-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    font-family: 'Manrope', sans-serif;
}

.btn-edit {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.btn-edit:hover { background: rgba(59, 130, 246, 0.22); }

.btn-delete {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-delete:hover { background: rgba(239, 68, 68, 0.22); }

/* ============================================================
   AGENDA TEXTAREA
   ============================================================ */

.agenda-textarea {
    width: 100%;
    min-height: 200px;
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s var(--ease-out);
    color: var(--text-primary);
    line-height: 1.6;
}

.agenda-textarea:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(212, 162, 52, 0.08);
}

.agenda-textarea::placeholder { color: var(--text-muted); }

/* ============================================================
   P2P STATUS / GROUP
   ============================================================ */

.p2p-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--navy-card);
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--text-muted);
    position: relative;
    flex-shrink: 0;
}

.status-dot.connected {
    background: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.status-dot.connecting {
    background: var(--accent-orange);
    animation: pulse-dot 1.4s ease-in-out infinite;
}

.status-dot.offline { background: var(--text-muted); }

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.peer-code {
    background: linear-gradient(135deg, rgba(212, 162, 52, 0.12), rgba(212, 162, 52, 0.04));
    color: var(--gold-200);
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 14px 0;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    border: 1px dashed rgba(212, 162, 52, 0.35);
    position: relative;
    overflow: hidden;
}

.peer-code:hover {
    border-color: var(--gold-400);
    border-style: solid;
    box-shadow: 0 0 24px rgba(212, 162, 52, 0.2);
    transform: scale(1.02);
}

.peer-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 3px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out);
    text-transform: uppercase;
}

.peer-input:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(212, 162, 52, 0.08);
}

.peer-input::placeholder { color: var(--text-muted); letter-spacing: 2px; }

.group-info {
    background: rgba(212, 162, 52, 0.06);
    border: 1px solid rgba(212, 162, 52, 0.22);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.group-info-title {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: var(--gold-300);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.group-info-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 162, 52, 0.4), transparent);
    margin: 18px 0;
}

.owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--grad-gold);
    border-radius: 20px;
    font-size: 11px;
    color: var(--navy-800);
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.peers-list { margin-top: 16px; }

.peer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--navy-card);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s var(--ease-out);
}

.peer-item:hover { border-color: rgba(212, 162, 52, 0.3); }

.peer-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.peer-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--navy-800);
    font-weight: 700;
}

.peer-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    font-weight: 600;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gold-200);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s var(--ease-out);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(212, 162, 52, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.reminder-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.reminder-option {
    padding: 11px 8px;
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Manrope', sans-serif;
}

.reminder-option:hover,
.reminder-option.active {
    border-color: var(--gold-400);
    background: rgba(212, 162, 52, 0.08);
    color: var(--gold-200);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 15, 31, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease-out);
    padding: 20px;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: linear-gradient(180deg, var(--navy-500), var(--navy-700));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 36px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.94) translateY(20px);
    transition: transform 0.4s var(--ease-bounce);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(212, 162, 52, 0.08);
    position: relative;
}

.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 2px;
    background: var(--grad-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer-text 5s linear infinite;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================================
   STEP INDICATOR
   ============================================================ */

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--navy-400);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.step-dot.active {
    background: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(212, 162, 52, 0.25);
    transform: scale(1.2);
}

.step-dot.completed { background: var(--accent-green); }

.step-line {
    width: 30px;
    height: 1px;
    background: var(--navy-400);
}

.step-line.completed { background: var(--accent-green); }

/* ============================================================
   VERIFICATION CODE INPUT
   ============================================================ */

.verify-input {
    width: 100%;
    padding: 16px;
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    font-size: 28px;
    text-align: center;
    letter-spacing: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--gold-300);
    transition: all 0.3s var(--ease-out);
}

.verify-input:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(212, 162, 52, 0.1);
}

.verify-input::placeholder {
    color: var(--text-muted);
    letter-spacing: 8px;
    font-size: 22px;
}

.email-status {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
    line-height: 1.5;
}

.email-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--accent-green);
}

.email-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

.email-status.info {
    display: block;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

/* ============================================================
   PRICING CARDS
   ============================================================ */

.pricing-cards {
    display: grid;
    gap: 16px;
    margin: 28px 0;
}

.pricing-card {
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--gold-400);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 162, 52, 0.12);
}

.pricing-card.featured {
    border-color: var(--gold-400);
    background: linear-gradient(180deg, rgba(212, 162, 52, 0.1), rgba(212, 162, 52, 0.02));
}

.pricing-card.featured::before {
    content: 'POPULARNO';
    position: absolute;
    top: 14px;
    right: -40px;
    background: var(--grad-gold);
    color: var(--navy-800);
    padding: 5px 44px;
    font-size: 10px;
    font-weight: 800;
    transform: rotate(45deg);
    letter-spacing: 1.5px;
    font-family: 'Manrope', sans-serif;
}

.pricing-name {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: 2.5px;
}

.pricing-price {
    font-family: 'Cinzel', serif;
    font-size: 38px;
    font-weight: 700;
    background: var(--grad-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer-text 5s linear infinite;
    margin: 14px 0;
}

.pricing-price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    -webkit-text-fill-color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}

.pricing-features li {
    padding: 9px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(212, 162, 52, 0.08);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
    content: '✦';
    color: var(--gold-400);
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   LOCKDOWN OVERLAY (after 30 days or expired)
   ============================================================ */

.lockdown-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 15, 31, 0.96);
    backdrop-filter: blur(20px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lockdown-overlay.active { display: flex; }

.lockdown-content {
    max-width: 520px;
    text-align: center;
    padding: 48px 36px;
    background: linear-gradient(180deg, var(--navy-600), var(--navy-700));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 28px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(239, 68, 68, 0.08);
    animation: rise 0.5s var(--ease-bounce);
}

.lockdown-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.4));
}

.lockdown-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.lockdown-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.lockdown-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================================
   ALARM OVERLAY
   ============================================================ */

.alarm-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 162, 52, 0.95), rgba(184, 137, 31, 0.95));
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.alarm-overlay.active { opacity: 1; visibility: visible; }

.alarm-icon {
    font-size: 90px;
    animation: ring 0.5s infinite alternate;
    margin-bottom: 36px;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

@keyframes ring {
    from { transform: rotate(-12deg) scale(1); }
    to { transform: rotate(12deg) scale(1.1); }
}

.alarm-text {
    font-family: 'Cinzel', serif;
    color: var(--navy-800);
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.alarm-subtext {
    color: rgba(10, 22, 40, 0.85);
    font-size: 18px;
    margin-bottom: 44px;
    font-weight: 500;
}

.alarm-btn {
    padding: 16px 52px;
    background: var(--navy-800);
    color: var(--gold-300);
    border: 2px solid var(--gold-400);
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 2px;
}

.alarm-btn:hover {
    background: var(--gold-400);
    color: var(--navy-800);
    transform: scale(1.05);
}

/* ============================================================
   NOTIFICATIONS (toast)
   ============================================================ */

.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--glass-strong);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 18px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    z-index: 1500;
    transform: translateX(450px);
    transition: transform 0.45s var(--ease-bounce);
    max-width: 360px;
    border-left: 3px solid var(--gold-400);
}

.notification.show { transform: translateX(0); }

.notification.success { border-left-color: var(--accent-green); }
.notification.error { border-left-color: var(--accent-red); }
.notification.warning { border-left-color: var(--accent-orange); }

.notification-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gold-300);
    letter-spacing: 1px;
    font-size: 14px;
}

.notification-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   PROFILE / AUTH
   ============================================================ */

.profile-avatar {
    width: 88px;
    height: 88px;
    background: var(--grad-gold);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-800);
    font-size: 36px;
    font-weight: 700;
    border: 3px solid rgba(212, 162, 52, 0.3);
    box-shadow: 0 0 30px rgba(212, 162, 52, 0.25);
}

.unique-code {
    background: linear-gradient(135deg, rgba(212, 162, 52, 0.1), rgba(212, 162, 52, 0.04));
    color: var(--gold-200);
    padding: 22px;
    border-radius: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    text-align: center;
    letter-spacing: 5px;
    margin: 22px 0;
    border: 1px dashed rgba(212, 162, 52, 0.4);
    text-shadow: 0 0 24px rgba(212, 162, 52, 0.25);
}

/* ============================================================
   EMPTY STATES
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 44px;
    margin-bottom: 14px;
    opacity: 0.45;
    filter: grayscale(0.5);
}

.empty-state p { font-size: 14px; }

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--navy-800); }
::-webkit-scrollbar-thumb {
    background: var(--navy-400);
    border-radius: 4px;
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-600); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .app-container { padding: 16px; }
    .header {
        flex-direction: column;
        text-align: center;
        padding: 18px 20px;
    }
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .logo-title { font-size: 24px; letter-spacing: 4px; }
    .logo-subtitle { letter-spacing: 7px; }
    .calendar-grid { gap: 4px; }
    .calendar-day { font-size: 12px; border-radius: 9px; }
    .form-row { grid-template-columns: 1fr; }
    .reminder-options { grid-template-columns: 1fr 1fr 1fr; }
    .main-grid { gap: 16px; }
    .card { padding: 18px; border-radius: 18px; }
    .modal { padding: 24px; border-radius: 20px; }
    .modal-header h2 { font-size: 22px; }
    .notification {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* ============================================================
   OFFLINE INDICATOR
   ============================================================ */

.offline-banner {
    display: none;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 18px;
    color: var(--accent-orange);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.offline-banner.show { display: flex; }
