:root {
    --isu-blue: #002d72;
    --isu-blue-light: #004dbe;
    --isu-red: #e31837;
    --isu-red-light: #ff2b4d;
    --isu-yellow: #ffb81c;

    --bg-main: #f4f7f6;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
}

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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    background: url('bg.png') center/cover no-repeat fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 45, 114, 0.5) 0%, rgba(0, 20, 50, 0.9) 100%);
    z-index: -2;
    pointer-events: none;
}





.court-line {
    position: fixed;
    height: 100vh;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(227, 24, 55, 0.4), transparent);
    z-index: -1;
}

.court-line-left {
    left: 5%;
}

.court-line-right {
    right: 5%;
}

.container {
    width: 100%;
    max-width: 850px;
    background: var(--surface);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 45, 114, 0.08);
    position: relative;
    overflow: hidden;
}

header {
    text-align: center;
    padding: 2rem 2rem 2.5rem;
    background: var(--isu-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 40px;
    background-image:
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0.2) 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0.2) 55%, transparent 55%);
    background-size: 15px 15px;
    border-top: 4px solid white;
}

header {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* Modern & Dynamic Title Styling */
.badge-season {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.header-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.club-logo-header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.club-logo-header img {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
    margin-left: -5rem;
}

@media (max-width: 768px) {
    .header-title-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .club-logo-header img {
        margin-left: 0;
        height: 100px;
    }
}

.title-dynamic {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    line-height: 1.1;
}

.text-volley {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* 3D and Glow Effect */
    text-shadow:
        3px 3px 0px var(--isu-red),
        -2px -2px 0px var(--isu-blue-light),
        0 0 20px rgba(255, 255, 255, 0.4);
}

.text-tourney {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--isu-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 2px 2px 0px var(--isu-blue-light);
}

/* Bouncing Volleyball Icon */
.volley-icon {
    display: inline-block;
    font-size: 2.6rem;
    animation: smash-bounce 2.5s infinite ease-in-out;
    transform-origin: center;
}

@keyframes smash-bounce {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    30% {
        transform: translateY(-20px) rotate(180deg) scale(1.1);
    }

    50% {
        transform: translateY(0) rotate(360deg) scale(0.95);
    }

    70% {
        transform: translateY(-10px) rotate(420deg) scale(1.05);
    }

    100% {
        transform: translateY(0) rotate(720deg) scale(1);
    }
}

/* Styled Description Block */
.desc-dynamic {
    color: #ffffff;
    font-size: 1.2rem;
    background: rgba(0, 45, 114, 0.5);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.highlight-action {
    color: var(--isu-yellow);
    font-weight: 800;
}

@media (max-width: 768px) {
    .text-volley {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .text-tourney {
        font-size: 2.2rem;
    }

    .volley-icon {
        font-size: 2.2rem;
    }

    .desc-dynamic {
        font-size: 1.05rem;
        padding: 1rem;
    }
}

.lang-toggle-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 5;
}

.lang-switch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    cursor: pointer;
    overflow: hidden;
    padding: 0 5px;
}

.lang-switch input {
    display: none;
}

.lang-switch .slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 44px;
    height: 28px;
    background: white;
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.lang-switch input:checked~.slider {
    transform: translateX(46px);
}

.lang-label {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    z-index: 2;
    transition: color 0.3s;
    user-select: none;
}

.tr-label {
    color: var(--isu-blue);
}

.lang-switch input:checked~.tr-label {
    color: white;
}

.lang-switch input:checked~.en-label {
    color: var(--isu-blue);
}

.float-switcher {
    background: var(--isu-blue);
    border-color: var(--isu-blue);
    box-shadow: 0 4px 10px rgba(0, 45, 114, 0.2);
}

.float-switcher .tr-label,
.float-switcher .en-label {
    color: white;
}

.float-switcher .tr-label {
    color: var(--isu-blue);
}

.float-switcher input:checked~.tr-label {
    color: white;
}

.float-switcher input:checked~.en-label {
    color: var(--isu-blue);
}

.registration-form {
    padding: 0 3.5rem 3.5rem;
}

.form-section {
    margin-bottom: 3.5rem;
    background: var(--surface);
    position: relative;
}

.form-section::before {
    content: attr(data-step);
    position: absolute;
    top: -15px;
    left: -20px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 45, 114, 0.05);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--isu-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h2::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23e31837' stroke-width='2'/%3E%3Cpath d='M12 2C12 2 16 6 16 12C16 18 12 22 12 22' stroke='%23e31837' stroke-width='2'/%3E%3Cpath d='M12 2C12 2 8 6 8 12C8 18 12 22 12 22' stroke='%23e31837' stroke-width='2'/%3E%3Cpath d='M2 12H22' stroke='%23e31837' stroke-width='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.form-row {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.form-row .input-group {
    flex: 1;
}

.input-group {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.input-group label {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.label-hint {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    outline: none;
}

input::placeholder {
    color: #a0aec0;
}

input:focus {
    border-color: var(--isu-blue);
    box-shadow: 0 4px 15px rgba(0, 45, 114, 0.08);
    background: var(--surface);
    transform: translateY(-2px);
}

#players-container-tr,
#players-container-en {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.player-input-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--surface);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    transition: all 0.3s;
}

.player-input-group:focus-within {
    border: 1px solid var(--isu-blue);
    background: #f8fafc;
}

.player-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--isu-red);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(227, 24, 55, 0.3);
    position: relative;
}

.player-number::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 20px;
    height: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid white;
    border-top: none;
    background: var(--isu-red);
}

.player-input-group input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 0;
    padding: 0.5rem;
}

.player-input-group input:focus {
    box-shadow: none;
    background: transparent;
    border-bottom-color: var(--isu-blue);
    transform: none;
}

.remove-player {
    background: transparent;
    color: var(--text-muted);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-player:hover {
    background: #fee2e2;
    color: var(--isu-red);
}

.btn-primary,
.btn-secondary {
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary {
    position: relative;
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, #002D72 0%, #004dbe 60%, #0060e6 100%);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 1.25rem;
    border-radius: 50px;
    box-shadow:
        0 6px 20px rgba(0, 45, 114, 0.30),
        0 2px 6px rgba(0, 45, 114, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.3s ease;
}



/* subtle top highlight line */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    pointer-events: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0040a8 0%, #0062e0 55%, #0078ff 100%);
    transform: translateY(-5px) scale(1.01);
    letter-spacing: 2px;
    box-shadow:
        0 18px 40px rgba(0, 77, 190, 0.45),
        0 6px 14px rgba(0, 45, 114, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.99);
    letter-spacing: 1.5px;
    box-shadow:
        0 6px 16px rgba(0, 45, 114, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* animate the arrow SVG inside button */
.btn-primary svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-primary:hover svg {
    transform: translateX(8px);
}


.btn-secondary {
    padding: 0.85rem 1.5rem;
    background: white;
    color: var(--isu-blue);
    border: 2px dashed var(--isu-blue);
    font-size: 1.05rem;
    width: auto;
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    background: var(--isu-blue);
    color: white;
    border-style: solid;
}

.success-content {
    text-align: center;
    padding: 2rem 3.5rem 4rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--isu-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(227, 24, 55, 0.3);
    position: relative;
}

.success-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    clip-path: circle(50% at 20% 50%);
}

.success-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    clip-path: circle(50% at 80% 50%);
}

.success-title {
    font-size: 2.4rem;
    color: var(--isu-blue);
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.success-text {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.summary-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
    background-image:
        linear-gradient(45deg, rgba(0, 45, 114, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 45, 114, 0.02) 75%),
        linear-gradient(45deg, rgba(0, 45, 114, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 45, 114, 0.02) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1.25rem;
    font-size: 1.1rem;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-label {
    color: var(--text-muted);
    font-weight: 600;
}

.summary-value {
    font-weight: 700;
    color: var(--isu-blue);
    text-align: right;
}

.highlight {
    color: var(--isu-red);
    font-weight: 800;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: var(--isu-blue);
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 45, 114, 0.2);
}

.back-link:hover {
    background: var(--isu-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 45, 114, 0.3);
}

@media (max-width: 768px) {
    body {
        padding: 0;
        display: block;
        /* Let items stack naturally */
    }

    .container {
        border-radius: 0;
        min-height: calc(100vh - 120px);
        box-shadow: none;
        margin-bottom: 0;
    }

    header {
        padding: 3rem 1.5rem 3rem;
        clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
    }

    header h1 {
        font-size: 2.2rem;
    }

    .registration-form,
    .success-content {
        padding: 0 1.5rem 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-section::before {
        display: none;
    }

    .sks-logo-link {
        display: block;
        text-align: center;
        padding: 2rem 0 2.5rem;
        width: 100%;
        background: var(--surface);
        /* Renkli logonun görünmesi için beyaz arka plan */
        border-top: 1px solid var(--border-color);
    }

    .sks-logo {
        position: static !important;
        /* Remove fixed to stop overlapping */
        display: inline-block !important;
        width: 823px;
        /* 549px'in yaklaşık %50 fazlası */
        max-width: 90vw;
        /* Ekrandan tamamen taşmasını engellemek için */
        content: url('sks-logo-renkli.png');
        filter: none;
    }
}

/* ── Mobile Sticky WhatsApp Bar ── */
.mobile-sticky-bar {
    display: none;
}

.mobile-wp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.75rem;
    background: #1a1a1a;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0.2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 200;
        padding: 0 1rem;
        animation: slideUpBar 0.4s ease both;
    }

    @keyframes slideUpBar {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }

    .mobile-wp-btn {
        gap: 0.65rem;
        padding: 0.9rem 2rem;
        background: #232323;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(8px);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-wp-btn:active {
        transform: scale(0.97);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    }

    .mobile-wp-btn svg {
        color: #25d366;
        /* WhatsApp yeşili ikon */
    }

    /* Mobilde normal yuvarlak FAB butonunu gizle */
    .fab-whatsapp {
        display: none !important;
    }
}

.sks-logo {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 220px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.sks-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* ── Floating WhatsApp Button ── */
.fab-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 100;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.fab-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: wpPulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes wpPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.fab-whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.60);
}

.fab-whatsapp-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    white-space: nowrap;
    background: #0f0f0f;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-4px);
}

.fab-whatsapp-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #0f0f0f;
}

.fab-whatsapp:hover .fab-whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}


.en-content {
    display: none !important;
}

.tr-content {
    display: block;
}

header h1.tr-content,
header p.tr-content {
    display: block;
}

body.lang-en .tr-content {
    display: none !important;
}

body.lang-en .en-content {
    display: block !important;
}

body.lang-en header h1.en-content,
body.lang-en header p.en-content {
    display: block !important;
}

/* ══════════════════════════════════════
   RULES SECTION — Premium Design
══════════════════════════════════════ */

.rules-section {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 45, 114, 0.10),
        0 1px 4px rgba(0, 45, 114, 0.06);
    animation: rulesReveal 0.5s ease both;
}

@keyframes rulesReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Title Bar ── */
.rules-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 1.4rem;
    background: linear-gradient(120deg, var(--isu-blue) 0%, #0047b3 60%, var(--isu-blue-light) 100%);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.rules-title::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

/* ── Content Wrapper ── */
.rules-content {
    padding: 1.2rem 1.25rem 0.5rem;
    background: #f9fafc;
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.75;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Category Cards ── */
.rules-content h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0.5rem 0 0;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--isu-blue) 0%, var(--isu-blue-light) 100%);
}

.rules-content h4:first-child {
    margin-top: 0;
}

/* ── List Items ── */
.rules-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rules-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: white;
    border-left: 3px solid var(--isu-blue);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rules-content ul li:hover {
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(0, 45, 114, 0.10);
    border-color: var(--isu-red);
}

.rules-content ul li::before {
    content: '›';
    color: var(--isu-red);
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

/* ── WhatsApp warning item ── */
.rules-content ul li:has(strong:only-child),
.rules-content ul li.whatsapp-warning {
    background: linear-gradient(90deg, #fff8e7, #fff3cd);
    border-left: 3px solid #f59e0b;
    font-weight: 700;
}

/* ── Consent Checkbox ── */
.rules-consent {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem;
    background: #fafafa;
    border-top: 1px solid #e8ecf2;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: background 0.2s;
}

.rules-consent:hover {
    background: #f3f6fb;
}

.rules-consent input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: auto;
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--isu-blue);
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.rules-consent input[type="checkbox"]:checked {
    animation: checkPop 0.3s ease;
}

.rules-consent input[type="checkbox"]:focus {
    outline: 3px solid rgba(0, 45, 114, 0.3);
    outline-offset: 2px;
    box-shadow: none;
}

@keyframes checkPop {
    0% {
        transform: scale(0.8);
    }

    60% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

/* ── WhatsApp Link Button ── */
.rules-content ul li.whatsapp-link-item {
    background: transparent;
    border-left: none;
    box-shadow: none;
    padding: 0.25rem 0;
    justify-content: flex-start;
}

.rules-content ul li.whatsapp-link-item::before {
    display: none;
}

.rules-content ul li.whatsapp-link-item:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #20c55d 0%, #0e7a6e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.50);
    color: white;
}

.whatsapp-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.30);
}