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

:root {
    --som-navy: #181921;
    --som-navy-light: #0b1f33;
    --som-blue: #1f5f95;
    --som-accent: #2ea7ff;
    --som-bg: #f4f7fb;
    --som-white: #ffffff;
    --som-text: #1f2937;
    --som-muted: #6b7280;
    --som-border: #dbe4ee;
    --som-success: #16a34a;
    --som-red: #a73335;
    --som-red-light: #c04142;
    --som-shadow: 0 12px 35px rgba(11, 31, 51, 0.12);
    --som-shadow-soft: 0 6px 18px rgba(11, 31, 51, 0.08);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background:
    radial-gradient(circle at top left, rgba(24, 25, 33, 0.06), transparent 30%),
    linear-gradient(180deg,  #e1e5ea 0%, #cfd6de 100%);
    color: var(--som-text);
    padding: 50px 20px;
}

.pricing-section {
    max-width: 1300px;
    margin: 0 auto;
    margin-top: 12px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--som-red-light);
    background: #a733351a;
    border: 1px solid #a7333522;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.pricing-eyebrow:hover {
    background: #a12d2f4d;
    border-color: #a7333522;
    cursor: pointer;
}

.pricing-title {
    font-family: 'Orbitron';
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--som-red);
    margin-bottom: 12px;
}

.pricing-subtitle {
    font-family: 'Orbitron';
    max-width: 750px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--som-red);
}

.pricing-table-wrapper {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(219, 228, 238, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--som-shadow);
    overflow: hidden;
}

.pricing-table {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1fr;
}

.cell {
    padding: 22px 20px;
    border-right: 1px solid var(--som-border);
    border-bottom: 1px solid var(--som-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 88px;
    background: var(--som-white);
}

.cell:nth-child(4n) {
    border-right: none;
}

.header-cell {
    min-height: 185px;
    background: linear-gradient(180deg, var(--som-navy) 0%,var(--som-navy) 85% , var(--som-red) 100%);
    color: var(--som-white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 28px 24px;
    position: relative;
}


.header-cell:not(.feature-header):not(.highlight-gold)::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(192, 65, 66, 0.95);
    box-shadow: 0 0 18px rgba(192, 65, 66, 0.45);
}

.feature-header {
    justify-content: center;
}

.feature-header .tier-name {
    font-size: 1.35rem;
}

.tier-name {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.tier-billed-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tier-month-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.tier-price-cycle-month {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}


.tier-price {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tier-price-cycle {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.tier-description {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    max-width: 240px;
}

.feature-name {
    justify-content: flex-start;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: var(--som-navy);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.feature-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--som-navy);
}

.feature-description {
    font-size: 0.88rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--som-muted);
    max-width: 310px;
}

.feature-header .tier-name {
    align-items: flex-start;
}

.tick,
.empty {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
}

.tick {
    background: rgba(22, 163, 74, 0.12);
    color: var(--som-success);
    border: 1px solid rgba(22, 163, 74, 0.18);
    box-shadow: var(--som-shadow-soft);
}

.empty {
    background: rgba(107, 114, 128, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.highlight-gold {
    background:
    linear-gradient(180deg, var(--som-navy) 0%,var(--som-navy) 85% , var(--som-red) 100%);
    position: relative;
}

.highlight-gold::before {
    content: "Most Complete";
    position: absolute;
    top: 18px;
    left: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fffcd7;
    background: linear-gradient(180deg, #caa63a 0%, #9a7720 100%);
    border: 1px solid rgba(255, 215, 102, 0.35);
    padding: 6px 10px;
    border-radius: 999px;
    
}

.highlight-gold::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(207, 169, 58, 0.95);
    box-shadow: 0 0 18px rgba(207, 169, 58, 0.45);
}

.highlight-gold .tier-name {
    margin-top: 34px;
}

.pricing-note {
    padding: 18px 22px;
    background: #f8fbff;
    color: var(--som-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    border-top: 1px solid var(--som-border);
    text-align: center;
}

.pricing-footer {
    padding: 22px 24px 28px;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fc 100%);
    border-top: 1px solid var(--som-border);
    text-align: center;
}

.pricing-footer p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--som-muted);
}

.app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 46, 46, 0.22);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--som-red) 0%, #a30505 100%);
    color: var(--som-white);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(31, 95, 149, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}


.app-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(31, 95, 149, 0.22);
    filter: brightness(1.03);
}

.app-link:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(31, 95, 149, 0.16);
}

.app-link:focus-visible {
    outline: 3px solid rgba(46, 167, 255, 0.22);
    outline-offset: 3px;
}

.hidden {
    display: none !important;
}
.feature-row {
    display: contents;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-logo {
    height: 50px; 
    width: auto;
    transform: scale(3.5);
    transform-origin: left center;
    cursor: pointer;
}


.nav-title h1 {
    font-family: 'Orbitron';
    font-size: 1.5rem;
    margin: 0;
    color: #a73335;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-icon-btn {
    background: white;
    color: #a73335;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 55px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.nav-icon-btn .nav-icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.nav-icon-btn .nav-label {
    opacity: 1;
    max-width:100px;
    height:  auto;
    padding-top: 0;
    overflow: hidden;
    white-space: nowrap;
    /*transition: opacity 0.25s ease, max-width 0.25s ease, height 0.25s ease;*/
    color: #a73335;
    font-size: 0.9rem;
}

.nav-icon-btn:hover .nav-label {
    opacity: 1;
    max-width: 100px;
    height: auto;
    color: white;
}

.nav-icon-btn:hover {
    background: #c04142;
    color: white;
    transform: translateY(-2px);
}
.nav-icon-btn:hover .nav-icon {
    width: 20px;
    height: 20px;
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right button {
    background-color: #a73335;
    color: white;
    border-radius: 24px;
    padding: 8px 16px;
}

.nav-icon-btn .nav-icon {
    width: 20px;
    height: 20px;
}

.user-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #a73335;          /* SOM red */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 1001;
}

.user-avatar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;   
}

.user-avatar:hover {
    background-color: #c04142;
    transform: scale(1.05);
}

/* --- Dropdown panel --- */
.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: #232530;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    min-width: 220px;
    padding: 12px 16px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-dropdown.show-dropdown {
    display: block;
}

.user-avatar:hover .user-dropdown,
.user-avatar .user-dropdown:hover  {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s; 
}

/* --- Dropdown text & link --- */
.user-dropdown p {
    color: #fff;
    font-size: 0.85rem;
    margin: 0 0 10px 0;
    word-break: break-all;
}

.user-dropdown a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    text-decoration: underline;
}

.dropdown-signout-btn {
    background-color: #a73335;
    color: white;
    border: none;
    width: 100%;
    padding: 8px 14px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}


.dropdown-signout-btn:hover {
    background-color: #c04142;
}


.dropdown-signout-btn:active {
    transform: scale(0.97);
}

/* -----------Footer------------*/
#footer-container {
    width: 100%;
    background: #ffffff;
    margin-top: 16px;
    padding: 24px 20px 28px;
    box-sizing: border-box;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.08);
}

#footerInner {
    position: relative;
    min-height: 150px;
    width: 100%;
}

.footer-contact {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.footer-contact h3 {
    margin: 0 0 4px 0;
    font-family: "Urbanist";
    font-size: 1rem;
    font-weight: 700;
    color: #a73335;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-label {
    font-family: "Urbanist";
    font-size: 0.9rem;
    font-weight: 600;
    color: #a73335;
}

.footer-contact a {
    color: #111;
    text-decoration: none;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.footer-contact a:hover {
    color: #c04142;
    text-decoration: underline;
}

#footerContent {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-align: center;
}

#footerContent label {
    margin: 0;
    padding: 0;
    display: block;
}

#footerContent p {
    margin: 0;
    padding: 0;
}

#footerContent a {
    display: block;
    color: #a73335;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

#footerContent a:hover {
    color: #c04142;
    text-decoration: underline;
}

.footer-spacer {
    display: none;
}

.tier-button {
    width: 100%;
    margin-top: 18px;
    margin-bottom: 14px;
    display: flex;
    justify-content: flex-start;
}

.tier-button button {
    appearance: none;
    border: none;
    outline: none;
    width: 100%;
    min-height: 48px;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--som-red) 0%, var(--som-red-light) 100%);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(167, 51, 53, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.tier-button button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(167, 51, 53, 0.34);
    filter: brightness(1.04);
}

.tier-button button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(167, 51, 53, 0.22);
}

.tier-button button:focus-visible {
    outline: 3px solid rgba(46, 167, 255, 0.28);
    outline-offset: 3px;
}

/* Premium plan button */
.highlight-gold .tier-button button {
    color: #ffffff;
    background: linear-gradient(180deg, #cfa93a 0%, #8e6b1b 100%);
    box-shadow: 0 10px 22px rgba(143, 107, 27, 0.28);
}

.highlight-gold .tier-button button:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #d8b64d 0%, #9b7620 100%);
    box-shadow: 0 14px 26px rgba(143, 107, 27, 0.34);
}

.tier-values {
    width: 100%;
    margin-top: 2px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tier-values::before {
    content: "Included";
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(46, 167, 255, 0.16);
    border: 1px solid rgba(46, 167, 255, 0.18);
    color: #d7efff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


@media (max-width: 980px) {
    .pricing-table {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    background: transparent;
    }

    .pricing-table-wrapper {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .cell {
    border-right: none !important;
    
    }

    .header-cell,
    .feature-name,
    .cell {
    text-align: center;
    justify-content: center;
    align-items: center;
    }

    .header-cell {
    border-radius: var(--radius-md);
    box-shadow: var(--som-shadow-soft);
    min-height: auto;
    }

    .tier-name {
        align-items: center;
        text-align: center;
    }

    .tier-description {
    max-width: 100%;
    }

    .highlight-gold::before {
    position: static;
    margin-bottom: 12px;
    }

    .highlight-gold .tier-name {
    margin-top: 0;
    }

    .nav-logo {
        height: 40px;
        transform: scale(1.3);
        transform-origin: left center;
        margin-right: 6px;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 10px;
        gap: 6px;
    }

    .nav-left { flex: 0 0 auto; }
    .nav-right { flex: 0 0 auto;
        order: 2;
        margin-left: auto; }
    .nav-links{
        order: 3;
        flex: 1 1 100%;
        display: flex;
        width: 100%;
        justify-content: space-evenly;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap;      
        min-width: 0;
        overflow-x: auto;
        padding-top: 0;
        scrollbar-width: none;          
    }


    .nav-icon-btn {
        height: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 6px !important;
        width: 72px;
        min-width: 0;
        gap: 4px !important;
        overflow: visible !important;
        border-radius: 14px;
    }

    .nav-icon-btn .nav-icon{
        width: 18px !important;
        height: 18px !important;
    }

    .nav-icon-btn .nav-label {
        font-size: 0.62rem !important;
        line-height: 1.05;
        opacity: 1 !important;
        height: auto !important;
        max-width: none !important;
        display: block !important;
        padding-top: 3px !important;
        color: #a73335 !important;
        white-space: nowrap;
        text-align: center;
    }

    .nav-icon-btn:active {
        background: #c04142 !important;
        color: white !important;
        transform: translateY(-2px) !important;
    }

    .nav-icon-btn:active .nav-label {
        color: white !important;   /* FIXED */
    }

    .nav-icon-btn:hover {
        transform: none !important;
    }

    .nav-right button {
        padding: 6px 10px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    #footerInner {
        position: static;
        min-height: unset;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .footer-contact {
        position: static;
        order: 1;
    }

    #footer-container {
        padding: 20px 16px 24px;
        margin-top: 12px;
    }

    #footerContent {
        position: static;
        transform: none;
        order: 2;
        align-items: center;
        text-align: center;
    }

    .footer-spacer {
        display: none;
    }

    .tier-button {
        justify-content: center;
    }

    .tier-button button,
    .tier-values {
        max-width: 420px;
    }

    .tier-values {
        text-align: center;
    }
}