
/* ==========================================
   322CS2 SOCIAL BONUS — MAIN DESIGN
   ========================================== */

.social-bonus-page {
    color: #f4f4f5;
    padding: 18px 0;
    width: 100%;
    overflow: hidden;
}

.social-bonus-page * {
    box-sizing: border-box;
}

/* HERO */

.sb-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 145px;
    padding: 20px 30px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 35, 48, .55);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 12% 50%, rgba(150, 0, 20, .22), transparent 55%),
        linear-gradient(110deg, #180306, #080709 75%);
    box-shadow: 0 0 28px rgba(255, 0, 20, .13);
}

.sb-gift {
    width: 125px;
    height: 115px;
    flex: 0 0 125px;
    display: grid;
    place-items: center;
}

.sb-gift img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 13px rgba(255, 20, 35, .65));
}

.sb-hero-copy {
    flex: 1;
    min-width: 0;
}

.social-bonus-kicker {
    font-size: 11px;
    letter-spacing: 2px;
    color: #ff606a;
    font-weight: 800;
}

.sb-hero h1 {
    margin: 3px 0;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    font-style: italic;
    line-height: 1.15;
}

.sb-hero h1 em {
    color: #ff2638;
    text-shadow: 0 0 18px rgba(255, 25, 50, .35);
}

.sb-hero p {
    margin: 7px 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.5;
}

.sb-admin-link,
.sb-back {
    color: #fff;
    text-decoration: none;
    border: 1px solid #e21b2d;
    border-radius: 9px;
    padding: 10px 15px;
    background: #30070c;
    transition: .2s ease;
}

.sb-admin-link:hover,
.sb-back:hover {
    background: #a50c20;
    box-shadow: 0 0 14px rgba(255, 20, 40, .3);
}

/* SOCIAL CARDS */

.sb-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.sb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 305px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 35, 48, .55);
    border-radius: 15px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(120, 0, 15, .16), transparent 65%),
        linear-gradient(145deg, #190508, #080709);
    box-shadow:
        0 0 18px rgba(255, 0, 25, .12),
        inset 0 0 20px rgba(255, 0, 25, .035);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.sb-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 45, 60, .9);
    box-shadow:
        0 8px 28px rgba(255, 0, 25, .18),
        inset 0 0 25px rgba(255, 0, 25, .07);
}

.sb-card-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 160px;
}

.sb-icon {
    width: 135px;
    height: 135px;
    flex: 0 0 135px;
    display: grid;
    place-items: center;
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.sb-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent !important;
    mix-blend-mode: normal !important;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .65));
}

/* Social network logo colors */

.sb-icon.sb-vk img {
    filter: drop-shadow(0 0 10px rgba(0, 130, 255, .25));
}

.sb-icon.sb-discord img {
    filter: drop-shadow(0 0 10px rgba(105, 90, 255, .3));
}

.sb-icon.sb-telegram img {
    filter: drop-shadow(0 0 10px rgba(0, 180, 255, .3));
}

.sb-card-copy {
    position: relative;
    flex: 1;
    min-width: 0;
    padding-top: 43px;
}

.sb-reward {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid #ff2638;
    border-radius: 9px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 0 13px rgba(255, 18, 44, .3);
    background: rgba(70, 5, 13, .65);
}

.sb-card-copy .sb-reward {
    position: absolute;
    top: 0;
    right: 0;
}

.sb-card-copy h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
}

.sb-card-copy p {
    margin: 0;
    min-height: 0;
    color: #bfc5d0;
    font-size: 14px;
    line-height: 1.5;
}

/* BUTTONS */

.sb-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 13px;
    border: 1px solid #e51b30;
    border-radius: 9px;
    background: linear-gradient(110deg, #26060b, #140407);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 0 13px rgba(255, 0, 25, .15);
    transition: .2s ease;
}

.sb-action:hover {
    color: #fff;
    border-color: #ff5260;
    background: linear-gradient(110deg, #650b18, #29060c);
    box-shadow: 0 0 18px rgba(255, 0, 25, .3);
}

.sb-action-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sb-action-brand img {
    display: block;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.sb-arrow {
    color: #ff3447;
    font-size: 30px;
    line-height: 1;
}

.sb-save {
    display: inline-block;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ff3548;
    border-radius: 9px;
    background: linear-gradient(90deg, #e3162b, #a70819);
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    transition: .2s ease;
}

.sb-save:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 18px rgba(255, 0, 25, .3);
}

/* CARD STATUS */

.sb-card > .sb-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 12px;
    color: #c3c7d0;
    font-size: 13px;
    text-align: center;
}

.sb-status-dot {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #d9e0ea;
    color: #16181d;
    font-weight: 900;
}

/* INFORMATION BLOCK */

.sb-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32%;
    gap: 20px;
    align-items: stretch;
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sb-how {
    padding: 21px 23px;
    border: 1px solid rgba(255, 35, 48, .55);
    border-radius: 15px;
    background: linear-gradient(145deg, #190508, #080709);
    box-shadow: 0 0 18px rgba(255, 0, 25, .1);
}

.sb-how h3 {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 20px;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
}

.sb-info-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #ff2638;
    border-radius: 50%;
    color: #ff2638;
    font-size: 17px;
    font-weight: 900;
}

.sb-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sb-steps > div {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.sb-steps > div > b {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid #ff2638;
    border-radius: 50%;
    color: #ff2638;
    font-size: 19px;
}

.sb-steps > div > span {
    color: #d1d5dc;
    font-size: 14px;
    line-height: 1.45;
}

.sb-steps > i {
    color: #ff2638;
    font-size: 27px;
    font-style: normal;
}

/* TOTAL REWARD */

.sb-total {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #ff2638;
    border-radius: 15px;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(190, 0, 25, .2), transparent 70%),
        linear-gradient(145deg, #190306, #080709);
    box-shadow:
        0 0 22px rgba(255, 0, 25, .25),
        inset 0 0 18px rgba(255, 0, 25, .1);
}

.sb-total span {
    color: #e2e2e2;
    font-size: 15px;
    text-align: center;
}

.sb-total strong {
    color: #ff2638;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 1000;
    font-style: italic;
    text-shadow: 0 0 18px rgba(255, 18, 44, .4);
}

.sb-total i {
    width: 58%;
    height: 3px;
    margin-top: 5px;
    border-radius: 50%;
    background: #ff1f35;
    box-shadow: 0 0 8px #ff1f35;
    transform: rotate(-4deg);
}

/* ALERTS AND NOTICES */

.sb-alert {
    margin-bottom: 15px;
    padding: 13px 15px;
    border: 1px solid #1b9c67;
    border-radius: 9px;
    background: rgba(18, 61, 44, .75);
    color: #d9ffeb;
    line-height: 1.5;
}

.sb-note,
.sb-muted {
    color: #aeb4c0;
    font-size: 13px;
}

.sb-note-bar {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 20px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 35, 48, .45);
    border-radius: 12px;
    background: #080709;
    color: #d5d9e0;
    font-size: 14px;
    line-height: 1.5;
}

.sb-note-bar > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e8eef8;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

/* CONFIRMATION LINKS AND FORMS */

.social-bonus-page .sb-how > p {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 10px 0;
}

.social-bonus-page .sb-how > p strong {
    color: #fff;
}

.social-bonus-page .sb-how form {
    margin-top: 14px;
}

.social-bonus-page .sb-how .sb-action {
    margin-top: 8px;
}

.social-bonus-page .sb-how div[style*="display:flex"] {
    align-items: center;
}

.sb-back {
    display: inline-block;
    margin-left: 0;
    font-size: 13px;
}

/* FOOTER STATUS */

.social-bonus-page > .sb-status {
    margin-top: 17px;
    color: #737987;
    font-size: 11px;
    letter-spacing: 2px;
    text-align: center;
}

/* ==========================================
   ADMIN PANEL — PRESERVED
   ========================================== */

.social-bonus-admin-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-bonus-admin-head h2 {
    margin: 5px 0;
}

.social-bonus-admin-head p {
    margin: 0;
    color: #aeb4c0;
}

.sb-admin-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sb-admin-card {
    padding: 22px;
    border: 1px solid rgba(255, 35, 48, .65);
    border-radius: 15px;
    background: linear-gradient(145deg, #230508, #080709);
    box-shadow: 0 0 20px rgba(255, 0, 25, .1);
}

.sb-admin-card label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 16px;
    color: #cbd5e1;
    font-size: 13px;
}

.sb-admin-card input[type="url"],
.sb-admin-card input[type="number"] {
    width: 100%;
    min-width: 0;
    padding: 11px;
    border: 1px solid #48404a;
    border-radius: 8px;
    background: #09090b;
    color: #fff;
}

.sb-network-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.sb-network-title small {
    display: block;
    color: #aeb4c0;
    font-size: 10px;
    letter-spacing: 1px;
}

.sb-network-title .sb-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
}

.sb-admin-bottom {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sb-toggle {
    flex-direction: row !important;
    align-items: center;
}

.sb-toggle input {
    accent-color: #f21d32;
}

.sb-save {
    grid-column: 1 / -1;
}

.sb-log-card {
    margin-top: 18px;
}

.sb-log-card h3 {
    margin: 0;
}

.sb-empty {
    padding: 18px;
    color: #aeb4c0;
    text-align: center;
}

.sb-table-wrap {
    overflow: auto;
}

.sb-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.sb-table-wrap th,
.sb-table-wrap td {
    padding: 10px;
    border-bottom: 1px solid #ffffff18;
    font-size: 13px;
    text-align: left;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 900px) {
    .sb-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-info {
        grid-template-columns: 1fr;
    }

    .sb-total {
        min-height: 145px;
    }

    .sb-admin-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media (max-width: 620px) {
    .social-bonus-page {
        padding: 10px 0;
    }

    .sb-hero {
        min-height: 0;
        padding: 16px;
        gap: 12px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .sb-gift {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    .sb-hero-copy {
        flex: 1;
        min-width: 180px;
    }

    .sb-hero h1 {
        font-size: 29px;
    }

    .sb-hero p {
        font-size: 13px;
    }

    .sb-admin-link {
        margin-left: 0;
    }

    .sb-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sb-card {
        min-height: 275px;
        padding: 17px;
    }

    .sb-card-main {
        min-height: 130px;
    }

    .sb-icon {
        width: 115px;
        height: 115px;
        flex-basis: 115px;
    }

    .sb-card-copy {
        padding-top: 40px;
    }

    .sb-card-copy h3 {
        font-size: 19px;
    }

    .sb-card-copy p {
        font-size: 13px;
    }

    .sb-card-copy .sb-reward {
        font-size: 16px;
        padding: 6px 9px;
    }

    .sb-action {
        min-height: 48px;
        font-size: 14px;
    }

    .sb-info {
        gap: 14px;
    }

    .sb-how {
        padding: 17px;
    }

    .sb-how h3 {
        font-size: 18px;
        margin-bottom: 17px;
    }

    .sb-steps {
        align-items: flex-start;
        flex-direction: column;
    }

    .sb-steps > div {
        width: 100%;
    }

    .sb-steps > i {
        display: none;
    }

    .sb-total {
        min-height: 130px;
    }

    .sb-note-bar {
        padding: 12px;
        font-size: 12px;
    }

    .sb-admin-form {
        grid-template-columns: 1fr;
    }

    .social-bonus-admin-head {
        align-items: flex-start;
        flex-direction: column;
    }
}