/* Cableo PHP — styles */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin: 0;
}

p { margin: 0; color: #424245; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(210,210,215,0.6);
}
.nav-inner {
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
    font-family: "Outfit", sans-serif;
}
.nav-links { display: flex; gap: 40px; }
.nav-links a {
    font-size: 14px; font-weight: 500; color: #6e6e73; transition: color .2s;
}
.nav-links a:hover { color: #1d1d1f; }
.cart-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 999px;
    background: transparent; border: none; color: #1d1d1f;
    transition: background .2s;
}
.cart-btn:hover { background: #e8e8ed; }
.cart-badge {
    position: absolute; top: -2px; right: -2px;
    background: #0066cc; color: white;
    font-size: 10px; font-weight: 600;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}

.navbar-secure { background: white; backdrop-filter: none; }
.nav-secure-inner { height: 56px; display:flex; align-items:center; justify-content:center; }
.secure-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; color: #86868b;
}

main.main-default { padding-top: 80px; min-height: calc(100vh - 80px); }
main.main-secure  { padding-top: 56px; min-height: calc(100vh - 56px); background: #f5f5f7; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 14px; font-weight: 500;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    transition: all .2s ease;
    text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: #0066cc; color: white; }
.btn-primary:hover { background: #0077ed; }
.btn-secondary { background: #e8e8ed; color: #1d1d1f; }
.btn-secondary:hover { background: #d2d2d7; }
.btn-dark { background: #1d1d1f; color: white; }
.btn-dark:hover { background: #2c2c2e; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-weight: 600; }
.btn-ghost { background: transparent; color: #0066cc; padding: 8px 12px; }
.btn-ghost:hover { color: #0077ED; }

/* ---------- Cards / Surfaces ---------- */
.card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    padding: 28px;
}
.card-shadow-hover {
    transition: all .3s ease;
}
.card-shadow-hover:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-size: 12px; font-weight: 500; color: #6e6e73;
}
.form-input {
    width: 100%; padding: 12px 16px;
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 14px; font-family: inherit;
    color: #1d1d1f;
    transition: all .2s;
}
.form-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 1px #0066cc;
}
.form-input::placeholder { color: #86868b; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Home Hero ---------- */
.hero { padding: 60px 0 100px; }
.hero-grid {
    display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
    .hero { padding: 80px 0 120px; }
}
.eyebrow {
    font-size: 13px; font-weight: 500; color: #0066cc;
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 16px;
}
.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    line-height: 1.02;
    margin-bottom: 24px;
}
.hero h1 span { color: #0066cc; }
.hero-text {
    font-size: 17px; color: #6e6e73; max-width: 420px;
    margin-bottom: 32px; line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image {
    position: relative;
    aspect-ratio: 1/1; border-radius: 40px; overflow: hidden;
    background: white;
    box-shadow: 0 8px 32px rgba(0,0,0,.06);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badges {
    margin-top: 40px; display: flex; gap: 24px;
    font-size: 12px; color: #86868b;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Features ---------- */
.features-section {
    background: white; padding: 80px 0;
}
.features-section h2 {
    font-size: clamp(28px, 4vw, 40px); font-weight: 600;
    margin-bottom: 48px; max-width: 520px;
}
.features-section h2 .muted { color: #86868b; }
.features-grid {
    display: grid; gap: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature {
    background: #f5f5f7; border-radius: 24px; padding: 28px;
}
.feature-icon {
    width: 44px; height: 44px; border-radius: 16px;
    background: white; display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 14px; color: #6e6e73; }

/* ---------- Catalog ---------- */
.section-pad { padding: 56px 0 80px; }
.section-pad h1 {
    font-size: clamp(36px, 5vw, 56px); font-weight: 600;
    margin-bottom: 12px;
}
.section-pad .lead {
    font-size: 16px; color: #6e6e73; max-width: 560px; margin-bottom: 40px;
}

.filters {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 16px; margin-bottom: 32px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    background: white; color: #1d1d1f;
    border: none; border-radius: 999px;
    padding: 8px 18px; font-size: 14px; font-weight: 500;
    text-decoration: none; display: inline-block;
    transition: all .2s;
}
.chip:hover { background: #e8e8ed; }
.chip.active { background: #1d1d1f; color: white; }

.sort-select {
    background: white; border: 1px solid #d2d2d7;
    border-radius: 999px; padding: 8px 16px;
    font-size: 14px; font-weight: 500; color: #1d1d1f;
    font-family: inherit;
}

.products-grid {
    display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 600px) { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
    background: white; border-radius: 24px; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transition: all .3s ease;
    display: flex; flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.product-image {
    position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f5f5f7;
}
.product-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge {
    position: absolute; top: 16px; left: 16px;
    background: #1d1d1f; color: white;
    font-size: 10px; font-weight: 500;
    padding: 4px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .06em;
}
.product-discount {
    position: absolute; top: 16px; right: 16px;
    background: #ff3b30; color: white;
    font-size: 10px; font-weight: 600;
    padding: 4px 10px; border-radius: 999px;
}
.product-info { padding: 20px; }
.product-meta { font-size: 11px; color: #86868b; margin-bottom: 4px; }
.product-name {
    font-size: 15px; font-weight: 600; line-height: 1.35;
    margin-bottom: 8px; min-height: 40px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-rating {
    font-size: 12px; color: #6e6e73; margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.star { color: #ffb800; }
.product-price { display: flex; align-items: baseline; gap: 8px; }
.product-price .price-now {
    font-size: 18px; font-weight: 600; color: #1d1d1f;
}
.product-price .price-old {
    font-size: 14px; color: #86868b; text-decoration: line-through;
}

/* ---------- Product Detail ---------- */
.detail-grid {
    display: grid; gap: 40px; grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .detail-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.detail-image {
    aspect-ratio: 1/1; background: white;
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: #6e6e73; margin-bottom: 24px;
}
.back-link:hover { color: #1d1d1f; }
.detail-info h1 {
    font-size: clamp(28px, 4vw, 40px); font-weight: 600;
    margin-bottom: 16px;
}
.detail-price {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px;
}
.detail-price .price-now { font-size: 30px; font-weight: 600; }
.detail-price .price-old { font-size: 18px; color: #86868b; text-decoration: line-through; }
.detail-price .price-pct {
    background: rgba(255,59,48,.1); color: #ff3b30;
    font-size: 12px; font-weight: 600;
    padding: 4px 10px; border-radius: 999px;
}
.detail-desc { font-size: 15px; color: #6e6e73; margin-bottom: 32px; }
.detail-specs {
    background: #f5f5f7; border-radius: 16px; padding: 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    font-size: 14px; margin-bottom: 24px;
}
.detail-specs .label { color: #86868b; font-size: 12px; margin-bottom: 4px; }
.detail-specs .value { font-weight: 500; }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.qty-control {
    display: inline-flex; align-items: center;
    background: white; border: 1px solid #d2d2d7; border-radius: 999px;
}
.qty-control button {
    width: 40px; height: 40px;
    background: transparent; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; color: #1d1d1f;
}
.qty-control button:hover { background: #f5f5f7; }
.qty-control button:first-child { border-radius: 999px 0 0 999px; }
.qty-control button:last-child { border-radius: 0 999px 999px 0; }
.qty-control input {
    width: 44px; text-align: center; border: none; background: transparent;
    font-size: 14px; font-weight: 500; font-family: inherit;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.detail-actions .btn { flex: 1; min-width: 200px; }

.trust-row {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
    font-size: 12px; color: #6e6e73; text-align: center;
}
.trust-row > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* ---------- Cart ---------- */
.cart-grid {
    display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
    .cart-grid { grid-template-columns: 2fr 1fr; }
}
.cart-item {
    background: white; border-radius: 24px; padding: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
    display: flex; gap: 20px;
    margin-bottom: 16px;
}
.cart-item-image {
    width: 110px; height: 110px; flex-shrink: 0;
    border-radius: 16px; overflow: hidden; background: #f5f5f7;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-item-name { font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.cart-item-meta { font-size: 11px; color: #86868b; margin-bottom: 12px; }
.cart-item-bottom {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cart-item-bottom .qty-control { background: #f5f5f7; border: none; }
.cart-item-bottom .qty-control button:hover { background: #e8e8ed; }
.cart-line-price { font-size: 16px; font-weight: 600; }
.cart-remove {
    background: transparent; border: none; padding: 8px;
    border-radius: 999px; color: #86868b;
    display: inline-flex; align-items: center; justify-content: center;
}
.cart-remove:hover { background: #f5f5f7; color: #ff3b30; }

.summary {
    background: white; border-radius: 24px; padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,.04); align-self: start;
    position: sticky; top: 96px;
}
.summary h2 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.summary-row {
    display: flex; justify-content: space-between; font-size: 14px;
    margin-bottom: 10px;
}
.summary-row .muted { color: #6e6e73; }
.summary-total {
    padding-top: 16px; margin-top: 16px;
    border-top: 1px solid #d2d2d7;
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 24px;
}
.summary-total-amount { font-size: 24px; font-weight: 600; }

.empty-state {
    max-width: 480px; margin: 60px auto; text-align: center;
}
.empty-icon {
    width: 80px; height: 80px; margin: 0 auto 24px;
    border-radius: 999px; background: white;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
    color: #86868b;
}
.empty-state h2 { font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.empty-state p { color: #6e6e73; margin-bottom: 32px; }

/* ---------- Checkout ---------- */
.checkout-grid {
    display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 1000px) { .checkout-grid { grid-template-columns: 2fr 1fr; } }
.section-card {
    background: white; border-radius: 24px; padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
    margin-bottom: 20px;
}
.section-card h2 { font-size: 17px; font-weight: 600; margin-bottom: 16px; }

.mode-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.mode-btn {
    text-align: left; padding: 16px; cursor: pointer;
    border-radius: 16px; border: 2px solid #d2d2d7;
    background: white; transition: all .2s;
    font-family: inherit;
}
.mode-btn:hover { border-color: #86868b; }
.mode-btn.active { border-color: #0066cc; background: rgba(0,102,204,.05); }
.mode-btn svg { color: #86868b; margin-bottom: 8px; }
.mode-btn.active svg { color: #0066cc; }
.mode-btn-title { font-size: 14px; font-weight: 600; }
.mode-btn-sub { font-size: 12px; color: #86868b; margin-top: 2px; }

.summary-mini-row {
    font-size: 13px; display: flex; justify-content: space-between; gap: 8px;
    margin-bottom: 8px;
}
.summary-mini-row .name { color: #6e6e73; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Payment / Processing / SMS ---------- */
.secure-wrap {
    max-width: 640px; margin: 0 auto; padding: 40px 24px;
}
.secure-head { text-align: center; margin-bottom: 32px; }
.secure-head .badge3d {
    display: inline-flex; align-items: center; gap: 6px;
    background: white; border-radius: 999px; padding: 6px 14px;
    font-size: 11px; font-weight: 500; margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.secure-head h1 {
    font-size: clamp(32px, 5vw, 44px); font-weight: 600;
    margin-bottom: 8px;
}
.secure-head .amount { font-size: 14px; color: #6e6e73; }
.secure-head .amount strong { color: #1d1d1f; }

.pay-form { padding: 28px; }
.pay-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.pay-head h2 { font-size: 15px; font-weight: 600; }
.card-badges { margin-left: auto; display: inline-flex; gap: 4px; }
.card-badge {
    font-size: 9px; font-weight: 700; letter-spacing: .08em;
    background: #1d1d1f; color: white; padding: 2px 6px; border-radius: 4px;
}
.billing-recap {
    background: #f5f5f7; border-radius: 16px; padding: 14px;
    font-size: 12px; color: #6e6e73; line-height: 1.55;
    margin-bottom: 16px;
}
.billing-recap p { color: inherit; }
.billing-recap strong { color: #1d1d1f; display: block; margin-bottom: 4px; }

.disclaimer {
    font-size: 10px; color: #86868b;
    text-align: center; line-height: 1.6;
    margin-top: 16px;
}

/* Processing page */
.processing { min-height: 75vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; text-align: center; }
.spinner {
    position: relative; width: 128px; height: 128px; margin: 0 auto 40px;
}
.spinner::before {
    content: ""; position: absolute; inset: 0;
    border: 4px solid rgba(0,102,204,.15); border-radius: 50%;
}
.spinner::after {
    content: ""; position: absolute; inset: 0;
    border: 4px solid transparent; border-top-color: #0066cc; border-radius: 50%;
    animation: spin 1s linear infinite;
}
.spinner-inner {
    position: absolute; inset: 16px; background: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
    color: #0066cc;
}
@keyframes spin { to { transform: rotate(360deg); } }

.processing-steps { max-width: 280px; margin: 30px auto 0; text-align: left; }
.processing-steps li {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: #1d1d1f; margin-bottom: 10px;
    list-style: none;
}
.processing-steps .num {
    width: 20px; height: 20px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #0066cc; color: white;
    font-size: 10px; font-weight: 600;
}

/* SMS */
.sms-card { padding: 32px; }
.sms-icon-wrap {
    width: 56px; height: 56px; margin: 0 auto 20px;
    border-radius: 16px; background: rgba(0,102,204,.1);
    display: inline-flex; align-items: center; justify-content: center;
    color: #0066cc;
}
.sms-text {
    text-align: center; font-size: 14px; color: #6e6e73;
    line-height: 1.6; margin: 12px 0 32px;
}
.sms-inputs {
    display: flex; justify-content: center; gap: 10px;
    margin-bottom: 24px;
}
.sms-input {
    width: 48px; height: 60px; text-align: center;
    font-size: 24px; font-weight: 600;
    background: #f5f5f7; border: 1px solid #d2d2d7;
    border-radius: 12px; color: #1d1d1f;
    font-family: inherit;
}
.sms-input:focus {
    outline: none; border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,.3);
}
.resend-link {
    display: block; margin-top: 16px; text-align: center;
    background: transparent; border: none;
    font-size: 14px; color: #0066cc; font-weight: 500;
}
.resend-link[disabled] { color: #86868b; cursor: not-allowed; }

/* Confirmation */
.confirm-head { text-align: center; margin-bottom: 40px; }
.confirm-icon-wrap {
    width: 80px; height: 80px; margin: 0 auto 24px;
    position: relative;
}
.confirm-icon-wrap::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(52,199,89,.15); border-radius: 50%;
}
.confirm-icon {
    position: absolute; inset: 8px;
    background: #34c759; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
}
.confirm-card { padding: 32px; margin-bottom: 24px; }
.confirm-header-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding-bottom: 20px; border-bottom: 1px solid #d2d2d7;
    margin-bottom: 24px;
}
.confirm-header-row .label { font-size: 11px; color: #86868b; margin-bottom: 4px; }
.confirm-header-row .value { font-size: 18px; font-weight: 600; letter-spacing: .03em; }
.confirm-item {
    display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.confirm-item-image {
    width: 56px; height: 56px; border-radius: 12px;
    overflow: hidden; background: #f5f5f7; flex-shrink: 0;
}
.confirm-item-image img { width: 100%; height: 100%; object-fit: cover; }
.confirm-item-info { flex: 1; min-width: 0; }
.confirm-item-info p:first-child {
    font-size: 14px; font-weight: 500; color: #1d1d1f;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.confirm-item-info p:last-child { font-size: 12px; color: #86868b; }
.confirm-info-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
    padding-top: 20px; border-top: 1px solid #d2d2d7;
}
@media (min-width: 600px) { .confirm-info-grid { grid-template-columns: 1fr 1fr; } }
.confirm-info-block { display: flex; gap: 12px; }
.confirm-info-block svg { flex-shrink: 0; margin-top: 2px; color: #0066cc; }
.confirm-info-block .label { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.confirm-info-block .text { font-size: 12px; color: #6e6e73; line-height: 1.55; }
.payment-validated {
    background: rgba(0,102,204,.05); border: 1px solid rgba(0,102,204,.2);
    border-radius: 24px; padding: 16px;
    text-align: center; font-size: 14px;
    margin-bottom: 32px;
}

/* ---------- CTA dark ---------- */
.cta {
    margin: 40px 0; padding: 40px 32px;
    background: #1d1d1f; color: white;
    border-radius: 40px; text-align: center;
}
@media (min-width: 768px) { .cta { padding: 64px 48px; } }
.cta h2 { color: white; font-size: clamp(28px, 5vw, 48px); font-weight: 600; margin-bottom: 12px; }
.cta p { color: #a1a1a6; max-width: 480px; margin: 0 auto 32px; }
.cta .btn-light { background: white; color: #1d1d1f; }
.cta .btn-light:hover { background: #f5f5f7; }

/* ---------- Footer ---------- */
.footer { background: white; border-top: 1px solid #d2d2d7; margin-top: 64px; padding: 48px 0; }
.footer-grid {
    display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-desc { font-size: 14px; color: #6e6e73; max-width: 380px; margin-top: 12px; line-height: 1.6; }
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: #6e6e73; }
.footer ul li { margin-bottom: 8px; }
.footer-bottom {
    margin-top: 40px; padding-top: 24px;
    border-top: 1px solid #d2d2d7;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    font-size: 12px; color: #86868b;
}

/* ---------- Flash messages ---------- */
.flash {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
    background: white; color: #1d1d1f;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    border-radius: 12px; padding: 12px 20px;
    font-size: 14px; z-index: 100;
    animation: fadeIn .25s ease;
}
.flash.error { color: #ff3b30; }
.flash.success { color: #34c759; }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Mobile hide ---------- */
@media (max-width: 800px) {
    .nav-links { display: none; }
}
