/*
Theme Name: WP Media Locker
Theme URI: https://wpmedialocker.com
Author: WP Media Locker
Description: Official theme for WP Media Locker — WordPress media offloading to Cloudflare R2.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-media-locker
*/

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    --locker-navy: #0F172A;
    --locker-800: #1E293B;
    --r2-azure: #3B82F6;
    --r2-600: #2563EB;
    --signal-teal: #14B8A6;
    --alert-coral: #F97316;
    --slate-grey: #64748B;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
}

/* ========================================
   Base & Reset
   ======================================== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: sticky !important;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200);
}

.site-header .nav-link a {
    font-size: 17px;
    font-weight: 500;
    color: var(--slate-grey);
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
}

.site-header .nav-link a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--r2-azure);
    border-radius: 1px;
    transition: width 0.25s ease;
}

.site-header .nav-link a:hover {
    color: var(--r2-azure);
}

.site-header .nav-link a:hover::after {
    width: 100%;
}

.site-header .wp-block-button.btn-dashboard .wp-block-button__link {
    font-size: 17px;
    font-weight: 500;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.site-header .wp-block-button.btn-dashboard .wp-block-button__link:hover {
    background: var(--locker-800) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}


.hero-icon {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.1s forwards;
}

.hero-icon img {
    filter: drop-shadow(0 8px 32px rgba(59, 130, 246, 0.15));
}

.hero-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.18);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #0D9488;
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.2s forwards;
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--signal-teal);
    animation: badgePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.3s forwards;
}

.hero-title-accent {
    color: var(--r2-azure);
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.4s forwards;
}

.hero-actions {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.5s forwards;
}

.hero-trust {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.6s forwards;
}

/* ========================================
   Buttons — Primary (Blue)
   ======================================== */
.btn-primary .wp-block-button__link {
    background: var(--r2-azure) !important;
    color: #fff !important;
    border-radius: 14px !important;
    font-weight: 500;
    padding: 14px 32px !important;
    transition: background-color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25), 0 1px 3px rgba(59, 130, 246, 0.12);
}

.btn-primary .wp-block-button__link:hover {
    background: var(--r2-600) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.32), 0 2px 6px rgba(59, 130, 246, 0.16);
}

/* ========================================
   Buttons — Secondary (Outline)
   ======================================== */
.btn-secondary .wp-block-button__link {
    background: #fff !important;
    color: var(--slate-grey) !important;
    border: 1px solid var(--slate-200) !important;
    border-radius: 14px !important;
    font-weight: 500;
    padding: 14px 24px !important;
    transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.btn-secondary .wp-block-button__link:hover {
    color: var(--r2-azure) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* ========================================
   Buttons — Navy
   ======================================== */
.btn-navy .wp-block-button__link {
    background: var(--locker-navy) !important;
    color: #fff !important;
    border-radius: 14px !important;
    font-weight: 500;
    padding: 14px 32px !important;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.btn-navy .wp-block-button__link:hover {
    background: var(--locker-800) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
}

/* ========================================
   Trust Metrics
   ======================================== */
.trust-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--locker-navy);
}

.trust-label {
    font-size: 13px;
    color: var(--slate-grey);
}

.trust-divider {
    width: 1px !important;
    height: 36px;
    background: var(--slate-200);
    flex-shrink: 0;
}

/* ========================================
   Section Headings
   ======================================== */
.section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--r2-azure);
}

.section-heading {
    letter-spacing: -0.025em;
}

/* ========================================
   Feature Cards
   ======================================== */
.feature-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 32px !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--r2-azure), var(--signal-teal));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.feature-icon-blue { background: var(--r2-azure); }
.feature-icon-teal { background: var(--signal-teal); }
.feature-icon-navy { background: var(--locker-navy); }
.feature-icon-coral { background: var(--alert-coral); }
.feature-icon-deep { background: var(--r2-600); }
.feature-icon-gradient { background: linear-gradient(135deg, var(--r2-azure), var(--signal-teal)); }

/* Equal-height cards */
.features-grid .wp-block-column {
    display: flex;
    flex-direction: column;
}

.features-grid .wp-block-column .feature-card {
    flex: 1;
}

/* ========================================
   How It Works — Steps
   ======================================== */
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--r2-azure), var(--signal-teal));
    margin: 0 auto 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Center all How It Works step content */
.step-number ~ .wp-block-heading,
.step-number ~ p {
    text-align: center;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-200);
    font-size: 28px;
    padding-top: 18px;
    margin: 0;
}

/* ========================================
   Pricing Cards
   ======================================== */
.pricing-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 32px !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: var(--r2-azure);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
}

.popular-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--r2-azure);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 4px 0 0;
    white-space: nowrap;
}

.pricing-amount {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--locker-navy);
    line-height: 1;
    margin: 0;
}

.pricing-period {
    font-size: 15px;
    color: var(--slate-grey);
    font-weight: 400;
    margin: 0;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features-list li {
    position: relative;
    padding-left: 28px;
    color: var(--locker-navy);
    font-size: 14px;
    line-height: 1.8;
}

.pricing-features-list li:first-child {
    font-weight: 600;
}

.pricing-features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M10 3L4.5 8.5L2 6' stroke='%2314B8A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/10px no-repeat;
    border: 1.5px solid var(--signal-teal);
    box-sizing: border-box;
}

.pricing-grid .wp-block-column {
    display: flex;
    flex-direction: column;
}

.pricing-grid .wp-block-column .pricing-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Pin the CTA to the bottom of every card so all buttons share a baseline,
   regardless of the "Most Popular" badge vs. spacer height above. */
.pricing-card .wp-block-buttons {
    margin-top: auto !important;
}

.pricing-card .wp-block-button .wp-block-button__link {
    width: 100%;
    justify-content: center;
    border-radius: 12px !important;
}

/* ========================================
   Dark Section (Infrastructure)
   ======================================== */
.dark-section {
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dark-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.region-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 24px !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.region-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.region-card .wp-block-heading::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.region-blue .wp-block-heading::before { background: var(--r2-azure); }
.region-teal .wp-block-heading::before { background: var(--signal-teal); }
.region-coral .wp-block-heading::before { background: var(--alert-coral); }

.infrastructure-grid .wp-block-column {
    display: flex;
    flex-direction: column;
}

.infrastructure-grid .wp-block-column .region-card {
    flex: 1;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-icon {
    opacity: 0.06;
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 300px;
    height: 300px;
    pointer-events: none;
}

/* ========================================
   Auth (login / register) pages
   ======================================== */
.wpml-auth-card {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.wpml-auth-card h2 {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--locker-navy);
    margin: 0 0 24px;
    text-align: center;
}

/* Flatten WooCommerce's default form.login / form.register border+padding so it
   doesn't double up inside our card. */
.wpml-auth-card form.login,
.wpml-auth-card form.register {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wpml-auth-card .form-row {
    margin-bottom: 18px;
}

.wpml-auth-card label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--locker-navy);
    margin-bottom: 6px;
}

.wpml-auth-card input.input-text,
.wpml-auth-card input[type="text"],
.wpml-auth-card input[type="email"],
.wpml-auth-card input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--slate-50);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wpml-auth-card input:focus {
    outline: none;
    border-color: var(--r2-azure);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.wpml-auth-card button[name="login"],
.wpml-auth-card button[name="register"],
.wpml-auth-card .wpml-auth-submit {
    width: 100%;
    background: var(--r2-azure) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px;
    padding: 14px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.wpml-auth-card button[name="login"]:hover,
.wpml-auth-card button[name="register"]:hover {
    background: var(--r2-600) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.wpml-auth-card .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--slate-grey);
    margin-bottom: 16px;
}

.wpml-auth-card .woocommerce-form-login__rememberme input {
    width: auto;
}

.wpml-auth-card .lost_password {
    text-align: center;
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.wpml-auth-card .wpml-auth-hint,
.wpml-auth-card .wpml-auth-note {
    color: var(--slate-grey);
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
}

.wpml-auth-alt {
    text-align: center;
    max-width: 460px;
    margin: 22px auto 0;
    color: var(--slate-grey);
    font-size: 0.95rem;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-list .faq-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--slate-200);
}

.faq-list .faq-item:first-child {
    border-top: 1px solid var(--slate-200);
}

.faq-item .wp-block-heading {
    margin-bottom: 6px;
}

/* ========================================
   Footer
   ======================================== */
.site-footer a {
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-footer a:hover {
    color: var(--r2-azure) !important;
}

.footer-divider {
    height: 1px;
    background: var(--slate-200);
}

/* ========================================
   Keyframe Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBob1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, -18px); }
}

@keyframes floatBob2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, 14px); }
}

@keyframes floatBob3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, -10px); }
}

@keyframes badgePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ========================================
   Scroll-Reveal Animations
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-up, .slide-in-left, .slide-in-right, .scale-in,
    .hero-icon, .hero-badge, .hero-title, .hero-subtitle,
    .hero-actions, .hero-trust {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 782px) {
    .nav-links-group {
        display: none !important;
    }

    .pricing-amount {
        font-size: 2rem;
    }

    .trust-value {
        font-size: 1.1rem;
    }

    .trust-label {
        font-size: 12px;
    }

    .trust-divider {
        height: 28px;
    }

    .step-connector {
        display: none !important;
    }

    .contact-cards .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* ========================================
   Inner Page Content
   ======================================== */
.page-content h2 {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--locker-navy);
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}

.page-content h3 {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--locker-navy);
    margin-top: 36px;
    margin-bottom: 12px;
}

.page-content p {
    color: var(--slate-grey);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.page-content a {
    color: var(--r2-azure);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.25s ease;
}

.page-content a:hover {
    color: #2563EB;
}

.page-content ul,
.page-content ol {
    color: var(--slate-grey);
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content li {
    line-height: 1.75;
    margin-bottom: 8px;
}

.page-content strong {
    color: var(--locker-navy);
    font-weight: 600;
}

.page-content blockquote {
    border-left: 3px solid var(--r2-azure);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--slate-grey);
    font-style: italic;
}

.page-content .legal-updated {
    font-size: 0.9rem;
    color: var(--slate-grey);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--slate-200);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 32px !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
    margin: 0 0 16px !important;
}

/* ========================================
   WooCommerce & Account Page
   ======================================== */

/* My Account page: override global content-size constraint */
.page-content-wide,
.page-content-wide > .wp-block-post-content {
    --wp--style--global--content-size: 100% !important;
    max-width: 100% !important;
}

/* Override WooCommerce side-by-side layout to stacked */
.woocommerce-account .woocommerce,
.page-content .woocommerce {
    display: flex;
    flex-direction: column;
    max-width: 90% !important;
    margin: 0 auto;
}

.page-content .woocommerce-MyAccount-navigation,
.page-content .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.page-content .woocommerce-MyAccount-navigation {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 4px 8px;
    margin-bottom: 32px;
}

.page-content .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.page-content .woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.page-content .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 10px 18px;
    color: var(--slate-grey);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 17px;
    white-space: nowrap;
}

.page-content .woocommerce-MyAccount-navigation li.is-active a,
.page-content .woocommerce-MyAccount-navigation li a:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--r2-azure);
}

/* Stack nav on mobile */
@media (max-width: 768px) {
    .page-content .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }
}

.page-content .woocommerce .button,
.page-content .woocommerce button.button {
    background: var(--r2-azure) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-weight: 500;
    transition: background 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease;
    cursor: pointer;
}

.page-content .woocommerce .button:hover,
.page-content .woocommerce button.button:hover {
    background: #2563EB !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}
