/* Prena.ai Premium Dashboard v2 */

.prena-app-dashboard,
.prena-app-dashboard * {
    box-sizing: border-box;
}

.prena-app-dashboard {
    --prena-bg: #faf9fc;
    --prena-navy: #1a1741;
    --prena-indigo: #2d2664;
    --prena-purple: #7c3aed;
    --prena-purple-2: #4f46e5;
    --prena-soft: #f4f1f9;
    --prena-muted: rgba(45, 38, 100, 0.62);
    --prena-border: rgba(124, 58, 237, 0.12);

    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(124, 58, 237, 0.10), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(219, 39, 119, 0.07), transparent 28%),
        var(--prena-bg);
    color: var(--prena-navy);
    font-family: inherit;
}

.prena-mobile-menu-toggle {
    display: none;
}

/* Sidebar */
.prena-app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 288px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 20% 25%, rgba(167, 139, 250, 0.22), transparent 32%),
        linear-gradient(180deg, #2d2664 0%, #1a1741 100%);
    color: #fff;
    overflow: hidden;
}

.prena-sidebar-image {
    position: relative;
    height: 148px;
    flex-shrink: 0;
    background:
        linear-gradient(to bottom, rgba(45,38,100,0.30), rgba(26,23,65,0.96)),
        radial-gradient(circle at 40% 30%, rgba(255,255,255,0.20), transparent 34%),
        linear-gradient(135deg, #6d5dfc, #1a1741);
    background-size: cover;
    background-position: center;
}

.prena-sidebar-logo {
    position: absolute;
    top: 22px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.prena-logo-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #a855f7, #6d5dfc);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
    font-size: 17px;
}

.prena-sidebar-location {
    position: absolute;
    left: 24px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.84);
    font-size: 12px;
    font-weight: 600;
}

.prena-sidebar-profile {
    margin: 26px 18px 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    border-radius: 28px;
    backdrop-filter: blur(12px);
}

.prena-sidebar-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #d946ef, #8b5cf6);
    font-size: 15px;
    font-weight: 800;
}

.prena-sidebar-profile strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.prena-sidebar-profile span {
    display: block;
    margin-top: 4px;
    color: rgba(221, 214, 254, 0.78);
    font-size: 12px;
}

.prena-sidebar-nav {
    flex: 1;
    padding: 0 16px;
    overflow-y: auto;
}

.prena-sidebar-nav a,
.prena-sidebar-logout {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    border-radius: 18px;
    color: rgba(221, 214, 254, 0.74);
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
    transition: 0.18s ease;
}

.prena-sidebar-nav a:hover,
.prena-sidebar-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.14);
}

.prena-sidebar-nav a.disabled {
    cursor: default;
}

.prena-nav-icon {
    width: 22px;
    text-align: center;
    font-size: 18px;
}

.prena-sidebar-nav em {
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.32);
    color: #e9d5ff;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.prena-sidebar-logout {
    margin: 0 16px 20px;
    flex-shrink: 0;
}

/* Main */
.prena-app-main {
    min-height: 100vh;
    margin-left: 288px;
    padding: 34px 32px;
}

.prena-main-layout {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 32px;
    align-items: start;
}

.prena-main-column {
    display: grid;
    gap: 28px;
}

.prena-hero-card {
    position: relative;
    min-height: 360px;
    padding: 46px;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--prena-border);
    box-shadow: 0 24px 70px rgba(26, 23, 65, 0.07);
}

.prena-hero-background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.82) 52%, rgba(255,255,255,0.62) 100%),
        radial-gradient(circle at 82% 24%, rgba(124, 58, 237, 0.14), transparent 34%),
        linear-gradient(135deg, #fff4f9, #eef5ff);
}

.prena-hero-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -90px;
    width: 430px;
    height: 260px;
    opacity: 0.10;
    background:
        linear-gradient(135deg, transparent 20%, rgba(45,38,100,0.4) 20% 21%, transparent 21%),
        radial-gradient(circle at 55% 55%, rgba(124,58,237,0.45), transparent 60%);
    transform: rotate(-8deg);
}

.prena-hero-content {
    position: relative;
    z-index: 2;
}

.prena-hero-card h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.075em;
    color: var(--prena-navy);
}

.prena-hero-subtitle {
    margin: 0 0 10px;
    color: rgba(45,38,100,0.86);
    font-size: 22px;
    font-weight: 500;
}

.prena-hero-text {
    max-width: 700px;
    margin: 0;
    color: rgba(45,38,100,0.64);
    font-size: 18px;
    line-height: 1.7;
}

.prena-hero-chips {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.prena-hero-chips span {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: linear-gradient(135deg, #faf5ff, rgba(245, 243, 255, 0.65));
    color: var(--prena-indigo);
    font-size: 14px;
    font-weight: 700;
}

/* Cards */
.prena-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.prena-create-card,
.prena-profile-card,
.prena-summary-card,
.prena-achievements article,
.prena-my-trips-card,
.prena-coming-grid article,
.prena-assistant-card {
    border: 1px solid var(--prena-border);
    box-shadow: 0 18px 54px rgba(26, 23, 65, 0.07);
}

.prena-create-card {
    min-height: 330px;
    padding: 36px;
    border-radius: 34px;
    color: #fff;
    background: linear-gradient(145deg, #b018ff 0%, #7c3aed 48%, #4f46e5 100%);
}

.prena-card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 32px;
    border-radius: 19px;
    background: rgba(255,255,255,0.18);
    font-size: 26px;
}

.prena-create-card h2 {
    max-width: 280px;
    margin: 0 0 18px;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.055em;
}

.prena-create-card p {
    max-width: 430px;
    margin: 0 0 30px;
    color: rgba(255,255,255,0.86);
    font-size: 17px;
    line-height: 1.65;
}

.prena-create-card a,
.prena-empty-trip a,
.prena-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 28px;
    border-radius: 18px;
    background: #fff;
    color: #6d28d9 !important;
    text-decoration: none;
    font-weight: 850;
    box-shadow: 0 14px 34px rgba(26, 23, 65, 0.12);
}

.prena-profile-card {
    min-height: 330px;
    padding: 32px;
    border-radius: 34px;
    background: #fff;
}

.prena-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.prena-status-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #fff;
    font-size: 23px;
    font-weight: 900;
}

.prena-profile-head h2 {
    margin: 0;
    color: var(--prena-navy);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.045em;
}

.prena-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.prena-profile-grid div {
    min-height: 96px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(145deg, #faf5ff, rgba(245,243,255,0.62));
}

.prena-profile-grid span {
    display: block;
    margin-bottom: 12px;
    color: rgba(45, 38, 100, 0.56);
    font-size: 12px;
}

.prena-profile-grid strong {
    color: var(--prena-navy);
    font-size: 15px;
    line-height: 1.25;
}

.prena-text-link {
    color: #8b00ff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
}

.prena-profile-empty {
    margin: 0 0 24px;
    color: rgba(45,38,100,0.72);
    line-height: 1.65;
}

.prena-profile-button {
    background: linear-gradient(135deg, #a21cff, #5b49f5);
    color: #fff !important;
}

/* Summary */
.prena-summary-card {
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(145deg, #faf5ff, rgba(238, 242, 255, 0.52));
}

.prena-summary-card h2,
.prena-achievements h2,
.prena-my-trips-card h2,
.prena-coming-soon h2 {
    margin: 0 0 24px;
    color: var(--prena-navy);
    font-size: 26px;
    letter-spacing: -0.045em;
}

.prena-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.prena-summary-grid a {
    display: block;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.64);
    color: var(--prena-navy);
    text-decoration: none;
    transition: 0.18s ease;
}

.prena-summary-grid a:hover {
    transform: translateY(-2px);
    background: #fff;
}

.prena-summary-grid span {
    display: block;
    margin-bottom: 12px;
    font-size: 24px;
}

.prena-summary-grid strong {
    display: block;
    margin-bottom: 5px;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.prena-summary-grid small {
    display: block;
    color: rgba(45,38,100,0.62);
    font-size: 13px;
    line-height: 1.25;
}

.purple { color: #9d00ff; }
.pink { color: #ec4899; }
.blue { color: #2563eb; }
.green { color: #10b981; }

/* Achievements */
.prena-achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.prena-achievements article {
    min-height: 220px;
    padding: 26px;
    border-radius: 28px;
    background: #fff;
}

.achievement-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 18px;
    color: #fff;
    font-size: 24px;
}

.achievement-icon.orange { background: linear-gradient(135deg, #f59e0b, #f97316); }
.achievement-icon.blue { background: linear-gradient(135deg, #60a5fa, #4f46e5); }
.achievement-icon.pink { background: linear-gradient(135deg, #d946ef, #ec4899); }

.prena-achievements h3 {
    margin: 0 0 12px;
    color: var(--prena-navy);
    font-size: 20px;
    line-height: 1.25;
}

.prena-achievements p {
    margin: 0;
    color: rgba(45,38,100,0.62);
    line-height: 1.55;
}

/* My trips */
.prena-my-trips-card {
    padding: 34px;
    border-radius: 34px;
    background: #fff;
}

.prena-empty-trip {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.prena-empty-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3e8ff, rgba(237, 233, 254, 0.62));
    color: rgba(124,58,237,0.42);
    font-size: 44px;
}

.prena-empty-trip h3 {
    margin: 0 0 12px;
    color: var(--prena-navy);
    font-size: 23px;
    letter-spacing: -0.04em;
}

.prena-empty-trip p {
    max-width: 460px;
    margin: 0 0 28px;
    color: rgba(45,38,100,0.60);
}

.prena-empty-trip a {
    gap: 8px;
    background: linear-gradient(135deg, #a21cff, #5b49f5);
    color: #fff !important;
}

/* Coming soon */
.prena-coming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.prena-coming-grid article {
    position: relative;
    min-height: 230px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(250,245,255,0.64), rgba(245,243,255,0.40));
    overflow: hidden;
}

.prena-coming-grid article > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 18px;
    color: #fff;
    font-size: 27px;
    opacity: 0.56;
}

.prena-coming-grid .doc { background: linear-gradient(135deg, #38bdf8, #06b6d4); }
.prena-coming-grid .calendar { background: linear-gradient(135deg, #34d399, #10b981); }
.prena-coming-grid .alert { background: linear-gradient(135deg, #fb923c, #f43f5e); }

.prena-coming-grid i {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.66);
    color: rgba(124,58,237,0.48);
    font-style: normal;
}

.prena-coming-grid h3 {
    margin: 0 0 8px;
    color: rgba(26, 23, 65, 0.62);
    font-size: 20px;
}

.prena-coming-grid p {
    margin: 0 0 16px;
    color: rgba(45,38,100,0.42);
}

.prena-coming-grid em {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(245, 208, 254, 0.45);
    color: rgba(147, 51, 234, 0.72);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

/* Assistant */
.prena-assistant-column {
    position: sticky;
    top: 32px;
}

.prena-assistant-card {
    padding: 28px;
    border-radius: 34px;
    background: #fff;
}

.prena-assistant-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.prena-assistant-head span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #a21cff, #5b49f5);
    color: #fff;
    font-size: 25px;
}

.prena-assistant-head h2 {
    margin: 0;
    color: var(--prena-navy);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.prena-assistant-card p {
    margin: 0 0 16px;
    color: rgba(45,38,100,0.56);
    font-size: 14px;
}

.prena-assistant-actions {
    display: grid;
    gap: 14px;
}

.prena-assistant-actions a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 70px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #faf5ff, rgba(245, 243, 255, 0.55));
    color: var(--prena-indigo) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 780;
    line-height: 1.35;
    transition: 0.18s ease;
}

.prena-assistant-actions a:hover {
    transform: translateY(-2px);
    background: #f3e8ff;
}

/* Responsive */
@media (max-width: 1180px) {
    .prena-main-layout {
        grid-template-columns: 1fr;
    }

    .prena-assistant-column {
        position: relative;
        top: auto;
    }

    .prena-card-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .prena-mobile-menu-toggle {
        display: grid;
        position: fixed;
        z-index: 60;
        top: 18px;
        left: 18px;
        width: 48px;
        height: 48px;
        place-items: center;
        border: 0;
        border-radius: 16px;
        background: linear-gradient(135deg, #7c3aed, #4f46e5);
        color: #fff;
        font-size: 22px;
        box-shadow: 0 16px 34px rgba(26,23,65,0.20);
    }

    .prena-app-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .prena-app-main {
        margin-left: 0;
        padding: 22px;
    }

    .prena-main-layout {
        padding-top: 70px;
    }

    .prena-sidebar-nav,
    .prena-sidebar-logout {
        display: none;
    }

    .prena-sidebar-profile {
        margin-bottom: 24px;
    }
}

@media (max-width: 720px) {
    .prena-app-main {
        padding: 16px;
    }

    .prena-hero-card {
        min-height: auto;
        padding: 30px;
    }

    .prena-hero-card h1 {
        font-size: 42px;
    }

    .prena-summary-grid,
    .prena-achievement-grid,
    .prena-coming-grid,
    .prena-profile-grid {
        grid-template-columns: 1fr;
    }

    .prena-create-card,
    .prena-profile-card,
    .prena-summary-card,
    .prena-my-trips-card {
        padding: 26px;
    }
}
