:root {
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --accent: #e11d48;
    --accent-soft: #fb7185;
    --dark: #0c2233;
    --dark-soft: #123047;
    --surface: #f0f9ff;
    --text-muted: #64748b;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
}

.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-light, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
}

.bg-primary-custom { background-color: var(--primary) !important; }
.text-primary-custom { color: var(--primary) !important; }
.text-accent-custom { color: var(--accent) !important; }

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #155e75 100%) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.35);
}

.btn-outline-dark-custom {
    border-color: var(--dark) !important;
    color: var(--dark) !important;
}

.btn-outline-dark-custom:hover {
    background-color: var(--dark) !important;
    color: #fff !important;
}

/* Logo */
.decked-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--dark);
}

.decked-logo-light {
    color: #fff;
}

.decked-logo-mark {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 55%, var(--dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(8, 145, 178, 0.35);
    overflow: hidden;
}

.decked-logo-ring {
    position: absolute;
    inset: 4px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 11px;
}

.decked-logo-deck {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 14px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18));
}

.decked-logo-heart {
    color: #fff;
    font-size: 1rem;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.decked-logo-word {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.decked-logo-accent {
    color: var(--accent);
}

.decked-logo-light .decked-logo-accent {
    color: var(--accent-soft);
}

/* Top bar */
.topbar {
    font-size: 0.9rem;
    background: var(--dark);
    color: #bae6fd;
}

.topbar a {
    color: #ffffff;
    text-decoration: none;
}

.topbar i {
    color: var(--accent-soft);
}

/* Navbar */
.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    color: var(--text-muted) !important;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero */
.hero-caption {
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.carousel-item {
    min-height: 560px;
}

.carousel-item.overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 34, 51, 0.88) 0%, rgba(8, 145, 178, 0.45) 100%);
    z-index: 1;
}

.hero-slide {
    object-fit: cover;
    height: 560px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.carousel-caption h1 {
    font-weight: 700;
}

/* Sections */
.section-title {
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
}

.icon-card {
    border: 1px solid #e0f2fe;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #ffffff;
    height: 100%;
}

.icon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(12, 34, 51, 0.08);
}

.icon-circle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(8, 145, 178, 0.12);
    color: var(--primary);
}

.icon-circle-accent {
    background: rgba(225, 29, 72, 0.12);
    color: var(--accent);
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.15rem;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.app-store-btn:hover {
    background: #fff;
    color: var(--dark);
    transform: translateY(-2px);
}

.app-store-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.about-visual {
    min-height: 320px;
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(12, 34, 51, 0.15);
}

.cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 55%, var(--primary) 100%);
    color: #fff;
    border-radius: 18px;
}

.premium-card {
    border: 2px solid #fecdd3;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
}

.modal-header-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.modal-icon-custom {
    color: var(--primary) !important;
}

.modal-btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.modal-btn-outline {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.modal-btn-outline:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

footer {
    background: var(--dark);
    color: #bae6fd;
}

footer a.footer-link {
    color: #7dd3fc;
}

footer .nav-link:hover {
    color: #fff !important;
}

html {
    scroll-behavior: smooth;
}

.bg-surface {
    background: var(--surface);
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-soft);
}

.legal-content hr {
    margin: 1.75rem 0;
    border-color: #e0f2fe;
    opacity: 1;
}

.legal-content ul {
    padding-left: 1.25rem;
}

.legal-content ul li {
    margin-bottom: 0.35rem;
}

.legal-content p {
    margin-bottom: 0.75rem;
}

.legal-content a {
    color: var(--primary-dark);
}

.legal-content .legal-intro {
    font-size: 1.05rem;
}

.legal-content .legal-closing {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0f2fe;
    font-weight: 500;
}

.admin-body {
    background: var(--surface);
}

.admin-sidebar {
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.admin-sidebar .nav-link {
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.admin-sidebar .nav-link.active {
    background-color: var(--primary);
    color: white !important;
}

@media (max-width: 767.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.sidebar-collapsed {
        transform: translateX(0);
    }

    .admin-dashboard .col-md-9.col-lg-10 {
        margin-left: 0 !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}
