:root {
    --secondary-hover: #005fa3;
    --background: #f5f7fa;
    --surface: #ffffff;
    --border: #d7dce2;
    --success: #198754;
    --error: #dc3545;
    --warning: #856404;
    --footer: #001f3f;
}



/* =================================
   RESET AND GLOBAL STYLES
================================= */









body {
    min-width: 0;
    overflow-x: hidden;
    background: var(--background);
    color: #333;
    font-family: Arial, sans-serif;
}



button,
input,
a {
    -webkit-tap-highlight-color: transparent;
}



button,
input {
    font-family: inherit;
}



/* =================================
   HEADER AND NAVIGATION
================================= */



header {
    width: 100%;
    background: var(--surface);
}






/* =================================
   LOGO
================================= */



.logo {
    color: var(--primary);
}



.logo span {
    color: var(--secondary);
}



.logo:hover,
.logo:focus-visible {
    color: var(--primary);
    outline: none;
}



/* =================================
   WELCOME MESSAGE
================================= */



.header-welcome {
    color: var(--primary);
}






/* =================================
   MAIN NAVIGATION
================================= */



.main-nav {
    flex-shrink: 0;
}



.nav-link,
.dropdown-btn {
    color: var(--primary);
    transition: background-color 0.2s ease,
        color 0.2s ease;
}



.nav-link:hover,
.nav-link:focus-visible,
.dropdown-btn:hover,
.dropdown-btn:focus-visible {
    background: #eef5fc;
    color: var(--secondary);
}



.nav-link.active {
    background: #e0efff;
    color: #005fa3;
    font-weight: bold;
}



/* =================================
   SUBJECTS DROPDOWN
================================= */












.dropdown-content {
    background: var(--surface);
    border: 1px solid #e3eaf2;
}



.dropdown-content a {
    color: #333;
    line-height: 1.4;
    transition: background-color 0.2s ease,
        color 0.2s ease;
}



.dropdown-content a:hover,
.dropdown-content a:focus-visible {
    background: #eef5fc;
    color: var(--secondary);
}



.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.mobile-open .dropdown-content {
    display: block;
}



.dropdown:hover .dropdown-arrow,
.dropdown:focus-within .dropdown-arrow,
.dropdown.mobile-open .dropdown-arrow {
    transform: rotate(180deg);
}



/* =================================
   MOBILE HAMBURGER
================================= */



.mobile-toggle {
    margin-left: auto;
    background: var(--surface);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
}



.mobile-toggle:hover,
.mobile-toggle:focus-visible {
    background: #eef5fc;
}



/* =================================
   NAVIGATION LOGOUT
================================= */



.nav-logout {
    background: var(--secondary);
    border: 2px solid var(--secondary);
    color: #fff;
    transition: background-color 0.2s ease,
        border-color 0.2s ease;
}



.nav-logout:hover,
.nav-logout:focus-visible {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
}



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



.btn {
    border: 2px solid transparent;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}



.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}



.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #fff;
}



.btn-secondary {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}



.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--primary);
    color: #fff;
    outline: none;
}



.btn-muted {
    background: #eef1f4;
    border: 1px solid #d0d5dd;
    color: #667085;
}



.btn-muted:hover {
    background: #e4e7ec;
    color: #475467;
}



button:disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
}



/* =================================
   HERO
================================= */



.hero {
    width: 100%;
    padding: 65px 20px;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    color: #fff;
    text-align: center;
}



.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}



.hero h1 {
    margin-bottom: 15px;
    font-size: 44px;
    line-height: 1.2;
}



.hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
}



.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}



.hero-feature {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 30px;
}



/* =================================
   ACCOUNT CONTENT
================================= */



.section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}



.account-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(320px, 1fr)
    );
    gap: 30px;
    width: 100%;
}



.account-card {
    min-width: 0;
    padding: 30px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow-wrap: anywhere;
}



.account-card h2 {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 24px;
    line-height: 1.3;
}



.card-description {
    margin-bottom: 25px;
    color: #666;
}



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



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



.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-weight: bold;
}



.form-control {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #333;
    font-size: 16px;
}



.form-control:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}



.form-control[readonly] {
    background: #f1f3f5;
    color: #656b71;
    cursor: not-allowed;
}



.form-hint {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}



/* =================================
   MESSAGES AND LOADING
================================= */



.message {
    display: none;
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: bold;
}



.message.success {
    display: block;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}



.message.error {
    display: block;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}



.message.info {
    display: block;
    background: #cff4fc;
    border: 1px solid #b6effb;
    color: #055160;
}



.loading {
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--primary);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}



.hidden {
    display: none;
}



/* =================================
   SUBSCRIPTION
================================= */



.subscription-details {
    margin-bottom: 20px;
    padding: 20px;
    background: #eef5fc;
    border-radius: 12px;
}



.subscription-details p {
    margin: 8px 0;
}



.subscription-subject-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(200px, 1fr)
    );
    gap: 15px;
    margin: 20px 0 25px;
}



.subscription-subject {
    min-width: 0;
    padding: 18px;
    background: var(--background);
    border-left: 5px solid var(--secondary);
    border-radius: 10px;
    overflow-wrap: anywhere;
}



.subscription-subject h3 {
    margin-bottom: 8px;
    color: var(--primary);
}



.subscription-subject p {
    margin: 0;
    font-weight: bold;
}



.status-available {
    color: var(--success);
}



.status-low {
    color: #fd7e14;
}



.status-exhausted {
    color: var(--error);
}



.status-unlimited {
    color: var(--secondary);
}



/* =================================
   SECURITY AND ACCOUNT ACTIONS
================================= */



.security-note {
    margin-top: 20px;
    padding: 14px;
    background: #fff3cd;
    border-radius: 8px;
    color: var(--warning);
}



.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}



/* =================================
   COPYRIGHT FOOTER
================================= */



footer {
    width: 100%;
    margin-top: 20px;
    padding: 24px 20px;
    background: var(--footer);
    color: #fff;
}












/* =================================
   TABLET AND MOBILE NAVIGATION
================================= */



@media (max-width: 900px) {
/*
       Profile is a protected page, so the hamburger
       is displayed automatically on mobile.
    */

    


    
.main-nav {
    order: 4;
    background: var(--surface);
    border-top: 1px solid #e3eaf2;
}


    
.main-nav.active {
    display: flex;
}


    


    


    


    
.dropdown-content {
    border: 0;
    border-radius: 8px;
}


    
.dropdown.mobile-open .dropdown-content {
    display: block;
}
}



/* =================================
   SMALL MOBILE SCREENS
================================= */



@media (max-width: 600px) {
.mobile-toggle {
    font-size: 22px;
}


    
.hero {
    padding: 50px 15px;
}


    
.hero h1 {
    font-size: 32px;
}


    
.hero p {
    font-size: 16px;
}


    
.hero-features {
    gap: 10px;
}


    
.hero-feature {
    padding: 7px 13px;
    font-size: 14px;
}


    
.section {
    padding: 40px 14px;
}


    
.account-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}


    
.account-card {
    padding: 22px 18px;
}


    
.account-card h2 {
    font-size: 22px;
}


    
.subscription-subject-grid {
    grid-template-columns: 1fr;
}


    
.button-row {
    flex-direction: column;
    align-items: stretch;
}


    
.button-row .btn,
    .account-card > .btn {
    width: 100%;
}


    
footer {
    margin-top: 10px;
    padding: 22px 15px;
}
}
