/* ============================================================ */
/* POOL PAGE — DARK GAMING THEME (matches accueil.html)         */
/* ============================================================ */

@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp   { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes glow-pulse-pool { 0%,100%{opacity:.2} 50%{opacity:.5} }

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

/* ============================================================ */
/* PAGE HERO HEADER                                              */
/* ============================================================ */
.pool-hero {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    padding: 80px 24px 48px;
    text-align: center;
}

.pool-hero-spots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.ph-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: glow-pulse-pool 5s ease-in-out infinite;
}
.ph-sp1 { width: 480px; height: 480px; background: rgba(0,212,255,.12); top: -160px; left: 25%; }
.ph-sp2 { width: 360px; height: 360px; background: rgba(110,50,220,.10); bottom: -100px; right: 15%; animation-delay: 2s; }

.pool-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.pool-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(0,212,255,.12);
    border: 1px solid rgba(0,212,255,.3);
    border-radius: 100px;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.pool-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 14px;
}

.pool-hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================ */
/* PILL TAB BAR                                                  */
/* ============================================================ */
.pool-tabs-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: 0 24px;
}

.pool-tabs {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    padding: 14px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pool-tabs::-webkit-scrollbar { display: none; }

.sub-nav-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
    position: relative;
}

.sub-nav-btn:hover {
    color: var(--primary);
    background: rgba(0,212,255,.06);
}

.sub-nav-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.sub-nav-btn.active {
    color: var(--primary);
    background: rgba(0,212,255,.12);
    border-color: rgba(0,212,255,.35);
    box-shadow: var(--glow-primary);
}

.tab-icon { font-size: 1rem; }

.tab-content { display: none; animation: fadeIn .35s ease; }
.tab-content.active { display: block; }

/* ============================================================ */
/* SHARED LAYOUT                                                 */
/* ============================================================ */
.pool-page-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

/* Section header inside tabs */
.pool-section-header {
    text-align: center;
    margin-bottom: 36px;
}
.pool-section-title {
    font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 400; /* Bebas Neue is naturally bold */
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 8px;
}
.pool-section-desc {
    color: var(--text-secondary);
    font-size: .92rem;
}

/* ============================================================ */
/* POOL LIST (My pools, Available pools, Drafts)                 */
/* ============================================================ */
.pool-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pool-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--card-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all .3s ease;
    cursor: default;
    animation: slideUp .35s ease both;
}
.pool-list li:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.pool-item-content { flex: 1; min-width: 0; }

.pool-item-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pool-item-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pool-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ============================================================ */
/* ACTION BUTTONS                                                */
/* ============================================================ */
.pool-action-btn {
    padding: 11px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #00A8CC 100%);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: var(--glow-primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.pool-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary-strong);
}
.pool-action-btn:active { transform: translateY(0); }

.pool-action-btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(0,212,255,.35);
    box-shadow: none;
}
.pool-action-btn.secondary:hover {
    background: rgba(0,212,255,.1);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

/* ============================================================ */
/* EMPTY STATE                                                   */
/* ============================================================ */
.pool-empty-state {
    text-align: center;
    padding: 56px 24px;
    background: var(--card-white);
    border: 1px dashed var(--border-gray);
    border-radius: 16px;
    color: var(--text-secondary);
}
.pool-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: .7;
}
.pool-empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.15rem;
}
.pool-empty-state p {
    font-size: .92rem;
    color: var(--text-gray);
    margin-bottom: 4px;
}
.pool-empty-state a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.pool-empty-state a:hover { text-decoration: underline; }

/* ============================================================ */
/* CREATE POOL FORM                                              */
/* ============================================================ */
.create-pool-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card {
    background: rgba(20,20,48,.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 28px 28px 24px;
    transition: all .3s ease;
}
.form-card:hover {
    border-color: rgba(0,212,255,.28);
    box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 20px rgba(0,212,255,.08);
}

.form-card-header {
    margin-bottom: 24px;
}
.form-card-title {
    font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 6px;
}
.form-card-desc {
    color: var(--text-secondary);
    font-size: .88rem;
}

/* Form primitives */
.form-section {
    margin: 0;
    padding: 0;
    background: none;
    border-left: none;
    border-radius: 0;
}
.form-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-secondary);
    font-size: .88rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}
.form-group:last-child { margin-bottom: 0; }

.form-group > label {
    display: flex;
    align-items: flex-start;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    transition: none;
    background: none;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-gray-light);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    transition: all .25s ease;
    appearance: none;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,212,255,.15);
}
.form-group input::placeholder { color: var(--text-gray); font-weight: 400; }

.form-group input[type="number"] { text-align: center; font-size: 1.15rem; }

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237B8CC4' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
.form-group select option {
    background: var(--card);
    color: var(--text-main);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-row:last-child { margin-bottom: 0; }
.form-row-half { grid-template-columns: 1fr; max-width: 50%; }

/* Radio & checkbox */
.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.form-group label:has(input[type="radio"]),
.form-group label:has(input[type="checkbox"]) {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all .25s ease;
    margin-bottom: 0;
}
.form-group label:has(input[type="radio"]):hover,
.form-group label:has(input[type="checkbox"]):hover {
    background: rgba(0,212,255,.04);
    border-color: rgba(0,212,255,.2);
}
.form-group label:has(input[type="radio"]:checked) {
    background: rgba(0,212,255,.08);
    border-color: rgba(0,212,255,.35);
}

.radio-label, .checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.radio-label strong, .checkbox-label {
    font-size: .95rem;
    color: var(--text-main);
}
.mode-description {
    font-size: .82rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-section-options {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

/* Warning badge */
.warning-message {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(255,179,0,.1);
    border: 1px solid rgba(255,179,0,.3);
    border-radius: 12px;
    color: var(--warning);
    font-size: .88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.warning-icon { font-size: 1.1rem; }

/* CTA */
.create-btn {
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, var(--primary) 0%, #00A8CC 100%);
    color: var(--bg);
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: var(--glow-primary);
    letter-spacing: .5px;
}
.create-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-primary-strong);
}
.create-btn:active { transform: translateY(0); }
.create-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================ */
/* SKELETON LOADERS                                              */
/* ============================================================ */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.skeleton-card {
    background: var(--card-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px 24px;
}
.skeleton-card-content .skeleton {
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border-light) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================ */
/* DRAFT TAB — Item Variants                                     */
/* ============================================================ */
.tab-draft-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--danger);
    color: var(--text-main);
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 800;
    margin-left: 6px;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

.draft-item { list-style: none; }

.draft-item.active-draft {
    border-color: rgba(255,71,87,.5) !important;
    background: rgba(255,71,87,.06) !important;
}
.draft-item.ready-draft {
    border-color: rgba(0,230,118,.5) !important;
    background: rgba(0,230,118,.06) !important;
}
.draft-item.waiting-draft {
    border-color: var(--border-gray) !important;
    opacity: .75;
}

.draft-active-badge {
    background: rgba(255,71,87,.12) !important;
    color: var(--danger) !important;
    border-color: rgba(255,71,87,.25) !important;
}
.draft-ready-badge {
    background: rgba(0,230,118,.12) !important;
    color: var(--success) !important;
    border-color: rgba(0,230,118,.25) !important;
}
.draft-waiting-badge {
    background: var(--bg-hover) !important;
    color: var(--text-gray) !important;
}

.draft-progress-bar {
    margin-top: 10px;
    background: var(--bg-gray-light);
    border-radius: 6px;
    height: 6px;
    overflow: hidden;
}
.draft-progress-fill {
    background: linear-gradient(90deg, var(--danger), #FF6B7A);
    height: 100%;
    border-radius: 6px;
    transition: width .3s ease;
}

.draft-resume-btn {
    background: linear-gradient(135deg, var(--danger) 0%, #E03E4E 100%) !important;
    color: var(--text-main) !important;
    border: none !important;
    box-shadow: var(--glow-danger) !important;
}
.draft-resume-btn:hover {
    box-shadow: 0 0 30px rgba(255,71,87,.4) !important;
}

.draft-start-btn {
    background: linear-gradient(135deg, var(--success) 0%, #00C864 100%) !important;
    color: var(--bg) !important;
    border: none !important;
    box-shadow: var(--glow-success) !important;
}
.draft-start-btn:hover {
    box-shadow: 0 0 30px rgba(0,230,118,.4) !important;
}

.draft-waiting-btn {
    cursor: default !important;
    opacity: .5 !important;
    box-shadow: none !important;
}

/* ============================================================ */
/* MODALS                                                        */
/* ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--overlay-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn .25s ease;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border-light);
    padding: 0;
    border-radius: 20px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(0,0,0,.6), var(--glow-primary);
    animation: slideUp .3s ease;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, #00A8CC 100%);
    padding: 24px 28px;
    border-radius: 20px 20px 0 0;
    position: relative;
}
.modal-content h2 {
    font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    color: var(--bg);
    margin: 0;
    font-weight: 400;
    letter-spacing: 1px;
    padding-right: 40px;
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 36px; height: 36px;
    background: rgba(0,0,0,.2);
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--bg);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
}
.modal-close:hover { background: rgba(0,0,0,.35); transform: rotate(90deg); }

.modal-body {
    padding: 28px;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
    color: var(--text-dark);
}

.modal-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--bg-gray-light);
}

.modal-content button {
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--primary) 0%, #00A8CC 100%);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: var(--glow-primary);
}
.modal-content button:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-primary-strong);
}
.modal-content button.secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-gray);
    box-shadow: none;
}
.modal-content button.secondary:hover {
    background: var(--card-white);
    border-color: var(--primary);
    color: var(--primary);
}

#clanDetails {
    color: var(--text-dark);
    line-height: 1.8;
}
#clanDetails > div {
    margin-bottom: 14px;
    padding: 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}
#clanDetails strong { color: var(--primary); font-weight: 700; }

#clan-members-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
#clan-members-content li {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: var(--bg-hover);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    transition: all .2s ease;
    color: var(--text-dark);
    gap: 12px;
}
#clan-members-content li:hover {
    background: rgba(0,212,255,.06);
    transform: translateX(4px);
}

.scrollable-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    background: var(--bg-gray-light);
}

/* ============================================================ */
/* TRADE PROPOSALS (inside pool modals)                          */
/* ============================================================ */
.trade-proposals-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}
.trade-proposal-card {
    background: var(--card-white);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid var(--border-light);
    transition: all .25s ease;
}
.trade-proposal-card:hover {
    border-color: rgba(0,212,255,.2);
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.trade-proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}
.trade-proposal-title { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.trade-proposal-date  { font-size: .82rem; color: var(--text-gray); }

.trade-proposal-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}
.trade-proposal-side {
    background: var(--bg-hover);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}
.trade-proposal-side h4 {
    font-size: .82rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .5px;
}
.trade-items-list { list-style: none; padding: 0; margin: 0; }
.trade-items-list li {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: .92rem;
    border-bottom: 1px solid var(--border-light);
}
.trade-items-list li:last-child { border-bottom: none; }
.trade-arrow-icon { font-size: 2.2rem; color: var(--primary); }

.trade-proposal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.trade-accept-btn, .trade-decline-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}
.trade-accept-btn {
    background: linear-gradient(135deg, var(--success) 0%, #00C864 100%);
    color: var(--bg);
    border: none;
    box-shadow: var(--glow-success);
}
.trade-accept-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(0,230,118,.4);
}
.trade-decline-btn {
    background: transparent;
    color: var(--danger);
    border: 2px solid rgba(255,71,87,.35);
}
.trade-decline-btn:hover {
    background: rgba(255,71,87,.08);
    border-color: var(--danger);
    transform: translateY(-1px);
}

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */
@media (max-width: 768px) {
    .pool-hero { padding: 64px 20px 36px; }
    .pool-hero-title { font-size: 2rem; }

    .pool-tabs-wrap { padding: 0 12px; }
    .pool-tabs { gap: 6px; padding: 10px 0; }
    .sub-nav-btn { padding: 9px 16px; font-size: .82rem; }

    .pool-page-container { padding: 28px 16px 48px; }

    .form-card { padding: 22px 20px 20px; }
    .form-card-title { font-size: 1.3rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-row-half { max-width: 100%; }

    .pool-list li {
        flex-direction: column;
        align-items: stretch;
    }
    .pool-action-btn {
        width: 100%;
        text-align: center;
    }

    .modal-content { max-width: 95%; border-radius: 16px; }
    .modal-header  { padding: 20px; border-radius: 16px 16px 0 0; }
    .modal-content h2 { font-size: 1.3rem; }
    .modal-body    { padding: 20px; }
    .modal-footer  { padding: 16px 20px; flex-direction: column; }
    .modal-footer button { width: 100%; }
    .modal-close   { width: 32px; height: 32px; top: 16px; right: 16px; }

    .trade-proposal-body { grid-template-columns: 1fr; }
    .trade-arrow-icon    { transform: rotate(90deg); text-align: center; }
    .trade-proposal-actions { flex-direction: column; }
    .trade-accept-btn, .trade-decline-btn { width: 100%; }
}

@media (max-width: 480px) {
    .pool-hero-title { font-size: 1.7rem; }
    .pool-hero-sub { font-size: .92rem; }

    .sub-nav-btn .tab-icon { display: none; }
    .sub-nav-btn { padding: 8px 14px; font-size: .8rem; }

    .form-card-title { font-size: 1.15rem; }
}

/* ============================================================ */
/* LIGHT MODE — hardcoded rgba overrides                         */
/* ============================================================ */
html[data-theme="light"] .form-card {
    background: rgba(255, 255, 255, 0.95);
}
