/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: #6220b4;
    --primary-light: #8a3fd4;
    --primary-dark: #4a1887;
    --accent: #ff9800;
    --accent-gold: #d4af37;
    --elyos: #c9a227;
    --asmo: #8e44ad;
    --bg-dark: #121d3b;
    --bg-darker: #0a1128;
    --text: #333;
    --text-muted: #777;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --color-second: #101010;
}

html { background: #000; }

body {
    background: #f2f4f7;
    color: var(--text);
    margin: 0;
    padding: 0;
    min-width: 1060px;
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; }

a.alt { color: var(--accent); text-decoration: underline; }
a.alt:hover, a.alt:active { color: #ffb400; }
*:focus { outline: none; }

/* ===== СКРОЛЛБАР ===== */
* { scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--primary-light));
    border-radius: 3px;
}

/* ===== КОНТЕЙНЕРЫ ===== */
.main-container {
    width: 1160px;
    margin: 0 auto;
    min-height: 600px;
    position: relative;
    top: -200px;
}

.main-container .main-content {
    width: 100%;
    margin: 0 auto;
    /* УБРАЛИ backdrop-filter */
    background: rgba(255, 255, 255, 0.92);
    background-image: url('../img/main-content-bg.jpg');
    background-blend-mode: overlay;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.main-container .main-content .main-content-container {
    width: 100%;
    padding: 20px 0;
    overflow: auto;
    min-height: 800px;
}

.main-container .main-content .main-content-container .main-sidebar {
    float: left;
    width: 290px;
    margin: 0 20px;
    text-align: center;
}

.main-container .main-content .main-content-container .main-page-container {
    float: left;
    width: 750px;
}

.main-container .main-footer {
    width: 1000px;
    margin: 0 auto;
    position: relative;
    text-align: center;
    color: #fff;
    font-size: 9px;
    padding-top: 30px;
    padding-bottom: 60px;
}

/* ===== SIDEBAR ===== */
.sidebar-block { width: 100%; margin-bottom: 10px; }

.usercp-block {
    width: 290px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    background-image: url('../img/usercp-bg.jpg');
    background-blend-mode: overlay;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    margin: 0 auto;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.usercp-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.usercp-block .usercp-container { width: 100%; margin: 0; padding: 0; }
.usercp-block .usercp-container .item {
    overflow: auto;
    padding: 4px 0;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}
.usercp-block .usercp-container .item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}
.usercp-block .usercp-container .item .itemicon { float: left; width: 20px; text-align: right; }
.usercp-block .usercp-container .item .itemicon img { width: 14px; height: auto; transition: var(--transition); }
.usercp-block .usercp-container .item:hover .itemicon img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px rgba(255, 152, 0, 0.6));
}
.usercp-block .usercp-container .item .itemlink {
    float: left;
    width: 175px;
    text-align: left;
    padding: 2px 0 0 5px;
    color: #fff;
    font-size: 12px;
}
.usercp-block .usercp-container .item .itemlink a {
    color: #9b9b9b;
    text-decoration: none;
    transition: color var(--transition);
}
.usercp-block .usercp-container .item .itemlink a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.usercp-block .usercp-container .separator {
    background: url('../img/usercp_icons/sep.png') no-repeat top center;
    height: 2px;
    opacity: 0.5;
}

.usercp-loggedin-block { width: 287px; margin: 30px auto; text-align: center; }
.usercp-loggedin-block a {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.usercp-loggedin-block a:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    transform: translateY(-2px);
}

.usercp-menu-container { width: 300px; margin: 20px; }
.usercp-menu-container .item { overflow: auto; padding: 2px 0; }
.usercp-menu-container .item .itemicon { float: left; width: 30px; text-align: right; }
.usercp-menu-container .item .itemicon img { width: 14px; height: auto; }
.usercp-menu-container .item .itemlink {
    float: left;
    width: 175px;
    text-align: left;
    padding: 2px 0 0 5px;
    color: #fff;
    font-size: 12px;
}
.usercp-menu-container .item .itemlink a { color: #000; text-decoration: underline; }
.usercp-menu-container .item .itemlink a:hover { color: var(--primary); }

.sidebar-download {
    background: url('../img/download_btn.png') no-repeat top center;
    background-size: 290px 221px;
    display: inline-block;
    width: 290px;
    height: 221px;
    transition: var(--transition);
    border-radius: var(--radius);
}
.sidebar-download:hover { filter: brightness(120%); transform: scale(1.02); }

/* ===== LOGIN BOX ===== */
.main-sidebar .login-box {
    width: 290px;
    height: 243px;
    background: url('../img/gn_login_box.png') no-repeat top center;
    display: inline-block;
    background-size: 290px 243px;
}
.main-sidebar .login-box .login-username {
    position: relative; top: 105px; left: 16px;
    background: transparent; border: 0; color: #fff;
    padding: 6px 0; width: 155px;
}
.main-sidebar .login-box .login-password {
    position: relative; top: 112px; left: 16px;
    background: transparent; border: 0; color: #fff;
    padding: 6px 0; width: 155px;
}
.main-sidebar .login-box .login-submit {
    position: relative; top: 118px; left: 48px;
    background: url('../img/login_btn.jpg') no-repeat top center;
    border: 0; width: 94px; height: 22px; cursor: pointer;
}
.main-sidebar .login-box .login-submit:hover { background-position: bottom center; }

/* ===== PAGE HEADER ===== */
.page-header-block {
    width: 100%;
    background: linear-gradient(135deg, #2a2a2a, #333);
    height: 100px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.page-header-block:hover {
    filter: brightness(115%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.connect.page-header-block { background: url('../img/titles/title_connect.jpg') no-repeat top center; background-size: cover; }
.info.page-header-block { background: url('../img/titles/title_info.jpg') no-repeat top center; background-size: cover; }
.support.page-header-block { background: url('../img/titles/title_support.jpg') no-repeat top center; background-size: cover; }
.rankings.page-header-block { background: url('../img/titles/title_rankings.jpg') no-repeat top center; background-size: cover; }
.donate.page-header-block { background: url('../img/titles/title_donate.jpg') no-repeat top center; background-size: cover; }
.login.page-header-block { background: url('../img/titles/title_login.jpg') no-repeat top center; background-size: cover; }
.register.page-header-block { background: url('../img/titles/title_register.jpg') no-repeat top center; background-size: cover; }
.usercp.page-header-block { background: url('../img/titles/title_usercp.jpg') no-repeat top center; background-size: cover; }
.fevents.page-header-block { background: url('../img/titles/title_forumevents.jpg') no-repeat top center; background-size: cover; }
.srules.page-header-block { background: url('../img/titles/title_rules.jpg') no-repeat top center; background-size: cover; }
.changepwd.page-header-block { background: url('../img/titles/title_changepwd.jpg') no-repeat top center; background-size: cover; }
.accrecovery.page-header-block { background: url('../img/titles/title_recovery.jpg') no-repeat top center; background-size: cover; }
.notfound404.page-header-block { background: url('../img/titles/title_404.jpg') no-repeat top center; background-size: cover; }
.accsecurity.page-header-block { background: url('../img/titles/title_security.jpg') no-repeat top center; background-size: cover; }
.votenreward.page-header-block { background: url('../img/titles/title_vote.jpg') no-repeat top center; background-size: cover; }
.itemenchant.page-header-block { background: url('../img/titles/title_enchant.jpg') no-repeat top center; background-size: cover; }
.auction.page-header-block { 
    background: url('../img/titles/title_auction.png') no-repeat top center; 
    background-size: cover; 
}

/* ===== LOGIN FORM ===== */
.login-form {
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.login-form tr td { padding: 5px; }
.login-form tr td:first-child { font-size: 18px; }
.login-form input[type="text"], .login-form input[type="password"] {
    width: 300px; padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
}
.login-form button {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 8px 24px; color: #fff; border: 0;
    border-radius: var(--radius-sm); cursor: pointer;
}

/* ===== UPGRADE PREMIUM/VIP — БЕЗ backdrop-filter! ===== */
.upgrade_premium,
.upgrade_vip {
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    background-image: url('../img/premium_bg.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 50px 20px;
    text-align: center;
    color: #ccc;
    margin-bottom: 10px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    /* ВАЖНО: нет position, нет overflow, нет transform */
}

.upgrade_vip {
    background-image: url('../img/vip_bg.jpg');
}

.upgrade_premium:hover,
.upgrade_vip:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ===== ОСТАЛЬНЫЕ БЛОКИ ===== */
.vote-img { margin: 10px auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }

.enchantment-selecttoken {
    background: url('../img/token_selectbg.png') no-repeat top center;
    width: 390px; height: 136px; margin: 0 auto;
    border-radius: var(--radius);
}
.enchantment-tokencontainer { width: 335px; height: 80px; position: relative; top: 33px; left: 30px; }
.enchantment-tokenc { float: left; width: 33%; text-align: center; padding-top: 12px; }
.enchantment-token {
    width: 50px; height: 54px;
    background: url('../img/token_regular.png') no-repeat top center;
    background-size: 50px 54px;
    display: inline-block;
}
.none.enchantment-token { background: url('../img/token_none.png') no-repeat top center; background-size: 50px 54px; }
.magic.enchantment-token { background: url('../img/token_magic.png') no-repeat top center; background-size: 50px 54px; }
.ultra.enchantment-token { background: url('../img/token_ultra.png') no-repeat top center; background-size: 50px 54px; }
.enchantment-token-qty {
    color: #ff4444; font-size: 11px; text-align: center;
    position: relative; top: -15px; font-weight: bold;
}

.usercp-home-menu { list-style-type: none; margin: 0; padding: 0; overflow: auto; margin-bottom: 7px; }
.usercp-home-menu li { float: left; text-align: center; width: 147px; }
.usercp-home-menu li a {
    display: inline-block; width: 140px; height: 141px;
    background: url('../img/usercp_icon_bg.png') no-repeat top center;
}
.usercp-home-menu li a:hover { background: url('../img/usercp_icon_bg.png') no-repeat bottom center; }

.sidebar-forumarket-container {
    width: 214px; margin: 0 auto;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 5px;
    border-radius: var(--radius);
}
.sidebar-forumarket-container span.title {
    text-align: center; font-size: 14px; font-weight: bold;
    border-bottom: 2px solid var(--accent); color: var(--accent);
    display: block; width: 90%; margin: 0 auto 10px; padding-bottom: 8px;
}
.sidebar-forumarket { width: 100%; font-size: 11px; text-align: left; }
.sidebar-forumarket tr td a {
    width: 190px; margin-left: 8px; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ccc;
}
.sidebar-forumarket tr td a:hover { color: #fff; }

.giveaway-banner {
    width: 590px; height: 230px;
    background: url('../img/2017_giveaway.jpg') no-repeat top center;
    border-radius: var(--radius);
}
.giveaway-banner:hover { background: url('../img/2017_giveaway.jpg') no-repeat bottom center; cursor: pointer; }

/* ===== NAV ===== */
.aioncms-nav {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    width: 100%; height: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.aioncms-nav ul {
    width: 1000px; list-style-type: none;
    padding: 0; margin: 0 auto; height: 100%;
    display: flex; align-items: center;
}
.aioncms-nav ul li { display: inline-block; height: 100%; }
.aioncms-nav ul li a {
    display: flex; align-items: center; justify-content: center;
    color: #f0f0f0; padding: 0 30px;
    font-family: 'le-monde-livre-std', serif;
    height: 100%; text-decoration: none;
    transition: var(--transition);
}
.aioncms-nav ul li a:hover,
.aioncms-nav ul li a.active {
    background: linear-gradient(to bottom, rgba(248, 45, 45, 0.9), rgba(181, 50, 50, 0.9));
}

.rankings.sidebar-block {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.rankings.sidebar-block h5 { margin-bottom: 20px; font-weight: bold; color: #3c66cf; }
.sidebar-ranking-table { width: 100%; font-size: 14px; color: #555; margin-bottom: 20px; }
.sidebar-ranking-table tr th {
    text-align: left; text-transform: uppercase;
    font-size: 9px; color: #000;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.sidebar-ranking-table tr td { text-align: left; padding: 4px 0; }
.sidebar-ranking-table tr td:nth-child(1),
.sidebar-ranking-table tr td:nth-child(2) { width: 100px; overflow: hidden; }
.sidebar-ranking-table tr td img { height: 20px; width: auto; }

/* ===== HEADER ===== */
.aioncms-header {
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.7), rgba(48, 43, 99, 0.5)),
                #000 url('../img/background.jpg') no-repeat;
    background-size: cover;
    width: 100%; height: 480px;
    border-bottom: 150px solid #ededed;
    position: relative;
}
.aioncms-header .aioncms-header-logo { text-align: center; padding-top: 0; line-height: 100%; }

/* ===== FOOTER ===== */
.aioncms-footer {
    background: linear-gradient(180deg, #22211f 0%, #121010 100%);
    color: #aaa; min-height: 300px; margin-top: -150px;
}
.aioncms-footer .aioncms-footer-social { background: #292929; text-align: center; padding: 50px 0; }
.aioncms-footer .aioncms-footer-social .social-icon-block { display: inline-block; margin: 0 20px; }
.aioncms-footer .aioncms-footer-social .social-icon {
    width: 50px; height: auto;
    transition: var(--transition);
    filter: brightness(50%);
}
.aioncms-footer .aioncms-footer-social .social-icon:hover { filter: brightness(100%); transform: translateY(-3px) scale(1.1); }
.aioncms-footer .aioncms-footer-content { padding: 50px 0; font-size: 12px; }
.aioncms-footer .aioncms-footer-content a { color: #cc4e4e; }
.aioncms-footer .aioncms-footer-content a:hover { color: #ff6b6b; }

.footer-time-title { font-family: 'Segoe UI', sans-serif; color: #fff; font-weight: bold; text-transform: uppercase; }
.footer-time {
    font-family: 'Segoe UI', sans-serif;
    font-size: 48px; color: #ff3214; font-weight: bold;
    position: relative; top: -10px;
}
.footer-date { font-family: 'Segoe UI', sans-serif; position: relative; top: -15px; font-size: 12px; }

.node--forum.node--unread .node--newIndicator { display: inline-block; }
.node--newIndicator {
    font-size: 11px; color: #fefefe;
    background: linear-gradient(135deg, #b23838, #d44848);
    border-radius: 3px; padding: 3px 6px; text-transform: uppercase;
}

canvas { position: absolute; top: 0; left: 0; }

invis { display: flex; font-weight: 100; filter: blur(5px); transition: filter 0.3s ease; }
invis:hover { filter: blur(0); }

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

.bubble {
    aspect-ratio: 1/1; border-radius: 50%;
    background: radial-gradient(var(--color-second), var(--color-second));
    position: absolute; opacity: 0;
    animation: inhale 2s linear infinite;
}
@keyframes inhale {
    50% { opacity: 0.5; transform: scale(1); }
    70% { opacity: 0.25; transform: scale(0.5); }
    100% { opacity: 0.1; transform: scale(0); left: 50%; top: 20%; }
}

.fixed-link {
    position: fixed; bottom: 20px; left: 20px;
    background: linear-gradient(135deg, #FF8C00, #ff6b00);
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

/* ===== INFO CONTAINER ===== */
.info-container {
    position: fixed; bottom: 50px; left: 20px;
    width: 300px;
    background: rgba(18, 29, 59, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    text-align: center; font-size: 14px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: flex; flex-direction: column; gap: 10px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow: visible !important;
    max-height: calc(100vh - 70px);
}
.info-container.show { transform: translateX(0); }
.info-container > *:not(#event-list):not(.toggle-button) { flex-shrink: 0; }

.season-container { width: 100%; text-align: left; }
.season-bar-container { display: flex; flex-direction: row; gap: 10px; align-items: center; }
.season-bar {
    width: 100%; height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 7px; margin-top: 5px;
    position: relative; overflow: hidden;
}
.season-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #ffb74d);
    border-radius: 7px; width: 0%;
    transition: width 0.5s ease-in-out;
}
.season-progress-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px; font-weight: bold; color: #333;
}
#days-left { font-size: 14px; color: white; margin-top: 5px; }

#event-list {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: var(--radius-sm);
    width: 100%; text-align: left;
    box-sizing: border-box;
    color: white;
    flex: 1 1 auto;
    min-height: 60px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.current-event {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: #333; font-weight: bold;
    padding: 5px;
    border-radius: var(--radius-sm);
}

.toggle-button {
    position: absolute; top: -12px; right: -20px;
    width: 36px; height: 36px;
    background: rgba(18, 29, 59, 0.9);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--accent); font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    animation: spin 5s linear infinite;
}
.info-container.show .toggle-button { transform: rotate(180deg); }
.toggle-button:hover { background: rgba(98, 32, 180, 0.9); }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tabs {
    display: flex; flex-wrap: nowrap;
    justify-content: space-between;
    margin-bottom: 5px; gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
}
.tab-button {
    padding: 6px 8px; cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: bold; color: white;
    transition: var(--transition);
    width: 13%; text-align: center;
    box-sizing: border-box;
    display: flex; justify-content: center; align-items: center;
}
.tab-button:hover { background: rgba(255, 255, 255, 0.15); }
.tab-button.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.current-day-tab {
    background: linear-gradient(135deg, var(--accent), #ffb74d);
    color: white; font-weight: bold;
    border-radius: var(--radius-sm); padding: 10px;
}
.active-event {
    background: linear-gradient(135deg, var(--accent), #ffb74d);
    color: black; font-weight: bold;
    padding: 5px;
    border-radius: var(--radius-sm);
}

#event-list::-webkit-scrollbar { width: 6px; }
#event-list::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 3px; }
#event-list::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--primary-light));
    border-radius: 3px;
}

.event { word-break: break-word; hyphens: auto; line-height: 1.3; }
.season-gun-icon { width: 20px; height: 20px; vertical-align: middle; margin-right: 4px; display: inline-block; }

.weekend-boost {
    font-size: 1.05em; font-weight: bold; color: #FFD700;
    display: flex; align-items: center; gap: 8px; margin-top: 6px;
    animation: rich-glow 8s ease-in-out infinite alternate;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
}
@keyframes rich-glow {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 215, 0, 0.5), 0 0 16px rgba(255, 215, 0, 0.3), 0 0 24px rgba(255, 215, 0, 0.1); }
    50% { text-shadow: 0 0 12px rgba(255, 215, 0, 0.8), 0 0 24px rgba(255, 215, 0, 0.6), 0 0 36px rgba(255, 215, 0, 0.4), 0 0 48px rgba(255, 215, 0, 0.2); }
}

.weekend-icon { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.season-skillbook-icon { height: 20px; vertical-align: middle; margin-left: 4px; }

/* ===== КРИТИЧЕСКИЙ ФИКС ДЛЯ МОДАЛОК ===== */
.modal-backdrop.in,
.modal-backdrop.show,
.modal-backdrop {
    z-index: 100000 !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

.modal.in,
.modal.show,
.modal {
    z-index: 100001 !important;
}

.modal-dialog {
    z-index: 100002 !important;
    margin: 80px auto;
    max-width: 500px;
}

.modal-content {
    background: rgba(30, 30, 40, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    color: #e0e0e0;
    /* БЕЗ backdrop-filter здесь! */
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 15px 20px !important;
}

.modal-title {
    color: var(--accent) !important;
    font-weight: 700;
}

.modal-body {
    padding: 20px !important;
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 15px 20px !important;
}

.modal .close {
    color: #fff !important;
    opacity: 0.7;
    text-shadow: none;
}
.modal .close:hover { opacity: 1; }

.modal-footer .btn {
    border-radius: var(--radius-sm) !important;
    padding: 8px 20px !important;
    font-weight: 500;
    border: none !important;
}

.modal-footer .btn-primary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
.modal-footer .btn-primary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.modal-footer .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: #fff !important;
}

.modal-footer .btn-warning {
    background: linear-gradient(135deg, #ff9800, #ffb74d) !important;
    color: #000 !important;
}

/* ===== СТРАНИЦА ПЕРСОНАЖЕЙ ===== */
.page-title-main {
    font-size: 28px;
    font-weight: 300;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title-main i {
    color: var(--primary);
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 18px;
    color: var(--text-muted);
}

/* ===== КАРТОЧКА ПЕРСОНАЖА ===== */
.character-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease backwards;
    position: relative;
    /* overflow НЕ трогаем — по умолчанию visible */
}

.character-card.elyos {
    border-top-color: #c9a227;
}

.character-card.asmo {
    border-top-color: #8e44ad;
}

.character-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== ШАПКА ПЕРСОНАЖА ===== */
.character-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.character-main-info {
    flex: 1;
}

.character-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.character-name {
    font-size: 26px;
    font-weight: 300;
    margin: 0;
    color: var(--text);
    letter-spacing: 0.5px;
}

.character-card.elyos .character-name {
    color: #8a6d1a;
}

.character-card.asmo .character-name {
    color: #5b2c6f;
}

/* ===== БЕЙДЖИ ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.online i {
    color: #28a745;
    animation: pulse 2s infinite;
}

.status-badge.offline {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.mail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--accent), #ffb74d);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* ===== МЕТА-ИНФО ===== */
.character-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.meta-item {
    font-size: 13px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--primary);
}

.meta-item.legion a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.meta-item.legion a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.btn-customize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(98, 32, 180, 0.1);
    color: var(--primary);
    border-radius: 50%;
    margin-left: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-customize:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}

/* ===== АВАТАРЫ ===== */
.character-avatars {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.avatar-item {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: help;
    position: relative;
    z-index: 1;
}

.avatar-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: #fff;
    z-index: 100;
}

.avatar-item img {
    max-width: 100%;
    max-height: 100%;
}

/* ===== ИНФО-СТРОКА ===== */
.character-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 28px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-block {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.info-block:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.info-label i {
    margin-right: 4px;
    color: var(--primary);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ===== СТАТУС УДАЛЕНИЯ ===== */
.delete-info {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delete-info.safe {
    color: #28a745;
}

.delete-info.danger {
    color: #dc3545;
    animation: blink 1.5s infinite;
}

.delete-info.warning {
    color: var(--accent);
    font-size: 12px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== СЕКЦИЯ НАГРАД ===== */
.rewards-section {
    padding: 24px 28px;
}

.rewards-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.rewards-title i {
    color: var(--accent-gold);
    font-size: 18px;
}

/* ===== СЕТКА НАГРАД ===== */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.reward-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 2px solid transparent;
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    /* overflow НЕ трогаем */
}

.reward-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-gold);
    z-index: 100;
}

.reward-image {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.reward-card:hover .reward-image {
    transform: scale(1.1) rotate(-3deg);
}

.reward-image img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.reward-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.reward-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(98, 32, 180, 0.2);
}

.reward-goal {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reward-items {
    display: flex;
    justify-content: center;
    gap: 3px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.reward-items img {
    transition: var(--transition);
    opacity: 0.7;
    cursor: help;
    position: relative;
    z-index: 1;
}

.reward-items img:hover {
    opacity: 1;
    transform: scale(1.3) translateY(-2px);
    z-index: 100;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .character-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .character-info-row {
        grid-template-columns: 1fr;
    }
    
    .rewards-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ===== СТЕКЛЯННЫЕ TOOLTIP ===== */
.tooltip {
    z-index: 999999 !important;
    pointer-events: none;
    opacity: 1 !important;
}

.tooltip.show {
    opacity: 1 !important;
}

.tooltip-inner {
    background: rgba(30, 30, 40, 0.95) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm) !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    max-width: 250px !important;
    color: #fff !important;
    letter-spacing: 0.3px;
}

/* Стрелки тултипа — все 4 направления */
.tooltip.bs-tooltip-top .arrow::before,
.tooltip.top .tooltip-arrow::before {
    border-top-color: rgba(30, 30, 40, 0.95) !important;
}

.tooltip.bs-tooltip-bottom .arrow::before,
.tooltip.bottom .tooltip-arrow::before {
    border-bottom-color: rgba(30, 30, 40, 0.95) !important;
}

.tooltip.bs-tooltip-left .arrow::before,
.tooltip.left .tooltip-arrow::before {
    border-left-color: rgba(30, 30, 40, 0.95) !important;
}

.tooltip.bs-tooltip-right .arrow::before,
.tooltip.right .tooltip-arrow::before {
    border-right-color: rgba(30, 30, 40, 0.95) !important;
}

/* Анимация появления тултипа */
.tooltip.fade {
    transition: opacity 0.2s ease, transform 0.2s ease;

}

.tooltip.fade.show {
    opacity: 1;
}

/* ===== VIP-БАННЕР ===== */
.vip-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1a0e2e 0%, #3d1f5c 50%, #1a0e2e 100%);
    border-bottom: 2px solid #d4af37;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    padding: 14px 20px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-banner.show {
    transform: translateY(0);
}

.vip-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.vip-banner-icon {
    font-size: 28px;
    animation: crown-bounce 2s ease-in-out infinite;
}

@keyframes crown-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

.vip-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vip-banner-text strong {
    color: #ffd700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.vip-banner-text span {
    color: #e0d4b0;
    font-size: 13px;
}

.vip-banner-text b {
    color: #fff;
    font-weight: 700;
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.page-title-main {
    font-size: 28px;
    font-weight: 300;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.page-title-main i {
    color: var(--primary);
    font-size: 32px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.account-page-header {
    margin-bottom: 24px;
}

/* ===== КАРТОЧКИ АККАУНТА ===== */
.account-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease backwards;
}

.account-card-header {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.08), rgba(255, 152, 0, 0.05));
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.account-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-card-title i {
    color: var(--primary);
    font-size: 18px;
}

.account-card-body {
    padding: 24px;
}

/* ===== СЕТКА ИНФОРМАЦИИ ===== */
.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.account-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    transition: var(--transition);
    border-left: 3px solid var(--primary);
}

.account-info-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(98, 32, 180, 0.3);
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 3px;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.password-dots {
    letter-spacing: 2px;
    font-size: 16px;
    color: var(--text-muted);
}

/* ===== ВИП-АККАУНТ ===== */
.account-info-item.vip-type {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 152, 0, 0.08));
    border-left-color: #d4af37;
}

.account-info-item.vip-type .info-icon {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

.account-info-item.vip-expire {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 152, 0, 0.03));
    border-left-color: #d4af37;
}

.vip-text {
    color: #d4af37;
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    animation: vip-glow 3s ease-in-out infinite;
}

@keyframes vip-glow {
    0%, 100% { text-shadow: 0 0 8px rgba(212, 175, 55, 0.3); }
    50% { text-shadow: 0 0 16px rgba(212, 175, 55, 0.6); }
}

/* ===== КРЕДИТЫ ===== */
.credits-item {
    border-left-color: var(--accent);
}

.credits-item .info-icon {
    background: linear-gradient(135deg, var(--accent), #ffb74d);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.credits-amount {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ПИЛЛЫ СТАТУСА ===== */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pill.active {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-pill.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* ===== ССЫЛКИ-ДЕЙСТВИЯ ===== */
.info-action {
    font-size: 11px;
    color: var(--primary);
    text-decoration: none;
    padding: 2px 8px;
    background: rgba(98, 32, 180, 0.1);
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 500;
    text-transform: lowercase;
}

.info-action:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.info-action.accent {
    color: var(--accent);
    background: rgba(255, 152, 0, 0.1);
}

.info-action.accent:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== БЕЗОПАСНОСТЬ ===== */
.security-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    transition: var(--transition);
    border-left: 3px solid var(--primary);
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.security-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.security-content {
    flex: 1;
    min-width: 0;
}

.security-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.security-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.security-action {
    flex-shrink: 0;
}

.security-status.confirmed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-verify {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(98, 32, 180, 0.3);
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(98, 32, 180, 0.5);
    color: #fff;
    text-decoration: none;
}

.btn-configure {
    background: linear-gradient(135deg, var(--accent), #ffb74d);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-configure:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.5);
    color: #000;
    text-decoration: none;
}

/* ===== КНОПКА СБРОСА ===== */
.security-reset-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    text-align: center;
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
    color: #fff;
    text-decoration: none;
}

/* ===== СОВЕТЫ ПО БЕЗОПАСНОСТИ ===== */
.safety-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.safety-tip {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    transition: var(--transition);
}

.safety-tip:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tip-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px 0;
}

.tip-content p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.tip-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.tip-link:hover {
    color: var(--primary-light);
}

/* ===== INVIS (скрытие данных) ===== */
invis {
    display: inline-block;
    filter: blur(4px);
    transition: filter 0.3s ease;
    cursor: help;
}

invis:hover {
    filter: blur(0);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .account-info-grid,
    .safety-tips-grid {
        grid-template-columns: 1fr;
    }

    .vip-banner-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .security-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .account-info-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.vote-page-header {
    margin-bottom: 24px;
}

/* ===== СТАТИСТИКА ===== */
.vote-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.vote-stat-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeInUp 0.5s ease backwards;
}

.vote-stat-card:nth-child(1) { animation-delay: 0.1s; }
.vote-stat-card:nth-child(2) { animation-delay: 0.2s; }
.vote-stat-card:nth-child(3) { animation-delay: 0.3s; }

.vote-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vote-stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(98, 32, 180, 0.4);
}

.vote-stat-content {
    flex: 1;
}

.vote-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.vote-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ИНСТРУКЦИЯ ===== */
.vote-instruction-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.card-header {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.08), rgba(255, 152, 0, 0.05));
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary);
    font-size: 18px;
}

.card-body {
    padding: 24px;
}

.instruction-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.instruction-step {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.instruction-step:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(98, 32, 180, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}

.step-content p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.btn-example {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* ===== ПРОМО-БЛОК ===== */
.promo-card {
    background: linear-gradient(135deg, rgba(255, 240, 220, 0.9), rgba(255, 220, 180, 0.85));
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 2px solid rgba(255, 152, 0, 0.4);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.2);
    animation: fadeInUp 0.5s ease backwards;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #ffb74d, var(--accent));
    background-size: 200% 100%;
    animation: shop-shimmer 3s linear infinite;
}

.promo-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 6px 40px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.promo-icon {
    font-size: 64px;
    line-height: 1;
    animation: gift-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 152, 0, 0.4));
}

@keyframes gift-bounce {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.promo-text {
    flex: 1;
}

.promo-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px 0;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-period {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
}

.promo-rewards {
    display: flex;
    gap: 16px;
}

.promo-reward {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 12px 20px;
    text-align: center;
    min-width: 120px;
    transition: var(--transition);
}

.promo-reward:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.promo-reward.vip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 152, 0, 0.15));
    border-color: rgba(212, 175, 55, 0.4);
}

.reward-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.promo-reward.vip .reward-value {
    color: #d4af37;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.reward-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== САЙТЫ ГОЛОСОВАНИЯ ===== */
.vote-sites-header {
    margin: 32px 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.vote-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.vote-site-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease backwards;
}

.vote-site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.vote-site-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.vote-site-card:hover::before {
    opacity: 1;
}

.vote-site-card.can-vote {
    border-color: rgba(40, 167, 69, 0.3);
}

.vote-site-card.can-vote::before {
    background: linear-gradient(90deg, #28a745, #20c997);
    opacity: 1;
}

.vote-site-card.on-cooldown {
    opacity: 0.85;
}

/* Логотип */
.vote-site-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.vote-site-card:hover .vote-site-logo {
    transform: scale(1.05) rotate(-3deg);
}

.vote-site-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Название */
.vote-site-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

/* Награда */
.vote-site-reward {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(98, 32, 180, 0.08);
    border: 1px solid rgba(98, 32, 180, 0.2);
    border-radius: 20px;
    margin-bottom: 16px;
    position: relative;
}

.vote-site-reward .reward-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.vote-site-reward .reward-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.vote-site-reward.vip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 152, 0, 0.1));
    border-color: rgba(212, 175, 55, 0.4);
}

.vote-site-reward.vip .reward-value {
    color: #d4af37;
}

.vote-site-reward.promo {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.08));
    border-color: rgba(40, 167, 69, 0.3);
}

.vote-site-reward.promo .reward-value {
    color: #28a745;
}

.vip-badge,
.promo-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.vip-badge {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000;
}

.promo-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
}

/* Кулдаун */
.vote-site-cooldown {
    margin-bottom: 16px;
}

.cooldown-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.cooldown-progress {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.cooldown-text {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cooldown-text.ready {
    color: #28a745;
}

.cooldown-text.waiting {
    color: #dc3545;
}

/* Кнопки */
.vote-site-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-vote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(98, 32, 180, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-vote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-vote:hover::before {
    left: 100%;
}

.btn-vote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(98, 32, 180, 0.5);
    color: #fff;
    text-decoration: none;
}

.btn-vote.disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.btn-vote.disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-claim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.5);
}

.claim-form {
    margin: 0;
}

/* ===== ПРЕДУПРЕЖДЕНИЕ ===== */
.vote-warning {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(192, 57, 43, 0.08));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-left: 4px solid #dc3545;
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    animation: fadeInUp 0.5s ease backwards;
}

.warning-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.warning-text {
    font-size: 13px;
    color: #721c24;
    line-height: 1.5;
}

.warning-text strong {
    color: #dc3545;
    font-weight: 700;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .vote-stats-row {
        grid-template-columns: 1fr;
    }

    .instruction-steps {
        grid-template-columns: 1fr;
    }

    .promo-content {
        flex-direction: column;
        text-align: center;
    }

    .promo-rewards {
        flex-direction: column;
        width: 100%;
    }

    .vote-sites-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== СТРАНИЦА УЛУЧШЕНИЯ АККАУНТА ===== */
.upgrade-page-header {
    text-align: center;
    margin-bottom: 32px;
}

.upgrade-page-header .page-title-main {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    justify-content: center;
}

.upgrade-page-header .page-title-main i {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upgrade-page-header .page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* ===== КАРТОЧКА БАЛАНСА ===== */
.balance-info-card {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.1), rgba(255, 152, 0, 0.08));
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.balance-info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: shop-shimmer 3s linear infinite;
}

.balance-info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(98, 32, 180, 0.4);
}

.balance-info-content {
    flex: 1;
}

.balance-info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.balance-info-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.balance-info-value span {
    font-size: 18px;
    font-weight: 600;
}

.balance-topup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.balance-topup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    color: #fff;
    text-decoration: none;
}

/* ===== СТАТУС АККАУНТА ===== */
.current-status-card {
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    animation: fadeInUp 0.5s ease backwards;
}

.current-status-card.status-premium {
    background: linear-gradient(135deg, rgba(0, 255, 198, 0.15), rgba(81, 177, 156, 0.1));
    border: 1px solid rgba(0, 255, 198, 0.4);
    color: #00a884;
}

.current-status-card.status-vip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #b8860b;
    animation: vip-status-glow 3s ease-in-out infinite;
}

@keyframes vip-status-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.4); }
}

/* ===== СЕТКА ТАРИФОВ ===== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    align-items: stretch;
}

/* ===== КАРТОЧКА ТАРИФА ===== */
.plan-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease backwards;
    display: flex;
    flex-direction: column;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Полоса сверху у каждого тарифа */
.plan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.plan-antivip::before {
    background: linear-gradient(90deg, #00ffc6, #51b19c);
}

.plan-vip7::before {
    background: linear-gradient(90deg, #FF4500, #FF6347);
}

.plan-vip30::before {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    animation: shop-shimmer 3s linear infinite;
    height: 5px;
}

/* ===== РЕКОМЕНДУЕМЫЙ ТАРИФ ===== */
.plan-card.featured {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.95), rgba(255, 240, 200, 0.9));
    border: 2px solid rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.25);
    z-index: 2;
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.4);
}

.featured-ribbon {
    position: absolute;
    top: 20px;
    right: -40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 6px 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
    z-index: 3;
}

/* ===== ИКОНКА ТАРИФА ===== */
.plan-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.plan-card:hover .plan-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.antivip-icon {
    background: linear-gradient(135deg, #00ffc6, #51b19c);
}

.vip7-icon {
    background: linear-gradient(135deg, #FF4500, #FF6347);
}

.vip30-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    animation: vip-icon-glow 2s ease-in-out infinite;
}

@keyframes vip-icon-glow {
    0%, 100% { box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 8px 32px rgba(255, 215, 0, 0.7); }
}

/* ===== БЕЙДЖИ СВЕРХУ ===== */
.plan-badge-top {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
    text-transform: uppercase;
}

.trial-badge {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15), rgba(255, 99, 71, 0.1));
    color: #FF4500;
    border: 1px solid rgba(255, 69, 0, 0.3);
}

.best-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* ===== ЗАГОЛОВОК ТАРИФА ===== */
/* ===== СЕТКА ТАРИФОВ (КОМПАКТНАЯ) ===== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    align-items: stretch;
}

/* ===== КАРТОЧКА ТАРИФА — КОМПАКТНАЯ ===== */
.plan-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 18px 16px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.6s ease backwards;
    display: flex;
    flex-direction: column;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.plan-antivip::before { background: linear-gradient(90deg, #00ffc6, #51b19c); }
.plan-vip7::before { background: linear-gradient(90deg, #FF4500, #FF6347); }
.plan-vip30::before {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    animation: shop-shimmer 3s linear infinite;
    height: 3px;
}

/* ===== РЕКОМЕНДУЕМЫЙ ТАРИФ (уменьшенный) ===== */
.plan-card.featured {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.95), rgba(255, 240, 200, 0.9));
    border: 2px solid rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
    z-index: 2;
}

.plan-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.35);
}

.featured-ribbon {
    position: absolute;
    top: 14px;
    right: -38px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 45px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    z-index: 3;
}

/* ===== ИКОНКА ТАРИФА (меньше) ===== */
.plan-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.plan-card:hover .plan-icon-wrap {
    transform: scale(1.08) rotate(-5deg);
}

.antivip-icon { background: linear-gradient(135deg, #00ffc6, #51b19c); }
.vip7-icon { background: linear-gradient(135deg, #FF4500, #FF6347); }
.vip30-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    animation: vip-icon-glow 2s ease-in-out infinite;
}

@keyframes vip-icon-glow {
    0%, 100% { box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6); }
}

/* ===== БЕЙДЖИ СВЕРХУ (компактнее) ===== */
.plan-badge-top {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
    text-transform: uppercase;
}

.trial-badge {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15), rgba(255, 99, 71, 0.1));
    color: #FF4500;
    border: 1px solid rgba(255, 69, 0, 0.3);
}

.best-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

/* ===== ЗАГОЛОВОК (меньше) ===== */
.plan-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 2px 0;
    color: var(--text);
    letter-spacing: 0.3px;
}

.plan-antivip .plan-title {
    background: linear-gradient(135deg, #00a884, #51b19c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-vip7 .plan-title {
    background: linear-gradient(135deg, #FF4500, #FF6347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-vip30 .plan-title {
    background: linear-gradient(135deg, #d4af37, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
}

.plan-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-style: italic;
}

/* ===== БЛОК ЦЕНЫ (компактнее) ===== */
.plan-price-block {
    padding: 12px 0;
    margin-bottom: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.plan-price {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.plan-antivip .plan-price {
    background: linear-gradient(135deg, #00a884, #51b19c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-vip7 .plan-price {
    background: linear-gradient(135deg, #FF4500, #FF6347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-vip30 .plan-price {
    background: linear-gradient(135deg, #d4af37, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 38px;
}

.plan-currency {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.plan-period {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== СПИСОК ФИЧЕЙ (компактнее) ===== */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    text-align: left;
    flex: 1;
}

.plan-features li {
    padding: 6px 10px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.plan-features li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.plan-features li i {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}

.plan-features li.feature-highlight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 152, 0, 0.08));
    border-left: 2px solid #FFD700;
    font-weight: 600;
}

.plan-features li.feature-highlight i {
    background: linear-gradient(135deg, #FF6347, #FF4500);
}

.plan-features li.feature-bonus {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.1), rgba(138, 63, 212, 0.08));
    border-left: 2px solid #9370DB;
}

.plan-features li.feature-bonus i {
    background: linear-gradient(135deg, #9370DB, #8a3fd4);
}

.plan-features li b {
    color: var(--primary);
    font-weight: 800;
    margin-left: auto;
    font-size: 13px;
}

/* ===== КНОПКА ТАРИФА (компактнее) ===== */
.plan-action {
    margin-top: auto;
}

.plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.plan-btn:hover::before {
    left: 100%;
}

.antivip-btn {
    background: linear-gradient(135deg, #00a884, #51b19c);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 168, 132, 0.4);
}

.antivip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 132, 0.6);
    color: #fff;
    text-decoration: none;
}

.vip7-btn {
    background: linear-gradient(135deg, #FF4500, #FF6347);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 69, 0, 0.4);
}

.vip7-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.6);
    color: #fff;
    text-decoration: none;
}

.featured-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.5);
    font-size: 14px;
    padding: 12px 16px;
    animation: btn-glow 2s ease-in-out infinite;
}

@keyframes btn-glow {
    0%, 100% { box-shadow: 0 4px 14px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 4px 22px rgba(255, 215, 0, 0.8); }
}

.featured-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 26px rgba(255, 215, 0, 0.8);
    color: #000;
    text-decoration: none;
}

.extend-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #fff;
    box-shadow: 0 4px 14px rgba(108, 117, 125, 0.4);
}

.extend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.6);
    color: #fff;
    text-decoration: none;
}

.plan-owned {
    padding: 10px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.1));
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius-sm);
    color: #28a745;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .plan-card.featured {
        transform: scale(1);
        order: -1;
    }

    .plan-card.featured:hover {
        transform: translateY(-4px);
    }
}

/* ===== КНОПКА ТАРИФА ===== */
.plan-action {
    margin-top: auto;
}

.plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.plan-btn:hover::before {
    left: 100%;
}

.antivip-btn {
    background: linear-gradient(135deg, #00a884, #51b19c);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 168, 132, 0.4);
}

.antivip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 168, 132, 0.6);
    color: #fff;
    text-decoration: none;
}

.vip7-btn {
    background: linear-gradient(135deg, #FF4500, #FF6347);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

.vip7-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.6);
    color: #fff;
    text-decoration: none;
}

.featured-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    font-size: 16px;
    padding: 16px 20px;
    animation: btn-glow 2s ease-in-out infinite;
}

@keyframes btn-glow {
    0%, 100% { box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 6px 30px rgba(255, 215, 0, 0.8); }
}

.featured-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.8);
    color: #000;
    text-decoration: none;
}

.extend-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #fff;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.extend-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.6);
    color: #fff;
    text-decoration: none;
}

.plan-owned {
    padding: 14px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.1));
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius);
    color: #28a745;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== БЛОК СРАВНЕНИЯ ===== */
.comparison-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.comparison-header {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.comparison-header i {
    color: var(--primary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.comparison-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    transition: var(--transition);
}

.comparison-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.comparison-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.comparison-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
}

.comparison-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ===== ГАРАНТИИ ===== */
.guarantees-card {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.05));
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #28a745;
}

.guarantee-item i {
    font-size: 20px;
    color: #28a745;
}

/* ===== МОДАЛКИ — ПОЛНОСТЬЮ НЕПРОЗРАЧНЫЕ ===== */
#upgradePremium .modal-content,
#upgradeVip .modal-content,
#upgradeVip7 .modal-content,
#extendVip .modal-content,
#extendVip7 .modal-content,
#purchaseItem .modal-content,
#transferShopPoints .modal-content {
    background: #ffffff !important; /* Полностью белый, без прозрачности */
    background-color: #ffffff !important;
    color: #333 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: none !important; /* Убираем размытие — оно и создаёт проблему */
    -webkit-backdrop-filter: none !important;
    position: relative;
    overflow: hidden;
}

/* Декоративная полоса сверху модалки */
#upgradePremium .modal-content::before,
#upgradeVip .modal-content::before,
#upgradeVip7 .modal-content::before,
#extendVip .modal-content::before,
#extendVip7 .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: shop-shimmer 3s linear infinite;
}

/* ===== HEADER МОДАЛКИ ===== */
#upgradePremium .modal-header,
#upgradeVip .modal-header,
#upgradeVip7 .modal-header,
#extendVip .modal-header,
#extendVip7 .modal-header,
#purchaseItem .modal-header,
#transferShopPoints .modal-header {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.05), rgba(255, 152, 0, 0.03)) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 18px 24px !important;
    position: relative;
    z-index: 1;
}

#upgradePremium .modal-title,
#upgradeVip .modal-title,
#upgradeVip7 .modal-title,
#extendVip .modal-title,
#extendVip7 .modal-title,
#purchaseItem .modal-title,
#transferShopPoints .modal-title {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Кнопка закрытия */
.modal .close {
    color: #333 !important;
    opacity: 0.6;
    text-shadow: none !important;
    transition: var(--transition);
    font-size: 28px;
    font-weight: 300;
}

.modal .close:hover {
    opacity: 1;
    color: var(--primary) !important;
    transform: rotate(90deg);
}

/* ===== BODY МОДАЛКИ ===== */
#upgradePremium .modal-body,
#upgradeVip .modal-body,
#upgradeVip7 .modal-body,
#extendVip .modal-body,
#extendVip7 .modal-body,
#purchaseItem .modal-body,
#transferShopPoints .modal-body {
    background: #ffffff !important;
    color: #333 !important;
    padding: 24px !important;
}

/* ===== FOOTER МОДАЛКИ ===== */
#upgradePremium .modal-footer,
#upgradeVip .modal-footer,
#upgradeVip7 .modal-footer,
#extendVip .modal-footer,
#extendVip7 .modal-footer,
#purchaseItem .modal-footer,
#transferShopPoints .modal-footer {
    background: rgba(0, 0, 0, 0.02) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 16px 24px !important;
}

/* ===== ИНФОРМАЦИОННЫЙ БЛОК В МОДАЛКЕ ===== */
.modal-info {
    padding: 16px 20px !important;
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.06), rgba(255, 152, 0, 0.04)) !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: var(--radius-sm) !important;
    margin: 8px 0 !important;
}

.modal-info p {
    margin: 8px 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important; /* Чёткий тёмный текст */
}

.modal-info strong {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ФОРМЫ В МОДАЛКАХ ===== */
.modal .form-control {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #333 !important;
    border-radius: var(--radius-sm);
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: var(--transition);
}

.modal .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(98, 32, 180, 0.15) !important;
    outline: none;
}

.modal label {
    color: #333 !important;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

.modal .text-muted,
.modal small {
    color: #777 !important;
    font-size: 12px;
}

/* ===== КНОПКИ В МОДАЛКАХ ===== */
.modal-footer .btn {
    border-radius: var(--radius-sm) !important;
    padding: 10px 24px !important;
    font-weight: 600;
    transition: var(--transition);
    border: none !important;
    font-size: 14px;
}

.modal-footer .btn-default {
    background: #f0f0f0 !important;
    color: #555 !important;
}

.modal-footer .btn-default:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
}

.modal-footer .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.modal-footer .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.5);
}

.modal-footer .btn-warning {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.modal-footer .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.6);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(98, 32, 180, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(98, 32, 180, 0.5);
}

/* ===== BACKDROP МОДАЛКИ ===== */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.modal.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
}

.modal.in .modal-dialog,
.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ===== CASHBACK VALUE В МОДАЛКЕ ===== */
.modal .cashback-value {
    color: #d4af37 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3) !important;
    -webkit-text-fill-color: #d4af37 !important; /* Переопределяем gradient text */
    background: none !important; /* Убираем gradient clip */
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .plan-card.featured {
        transform: scale(1);
        order: -1; /* Рекомендуемый тариф первым на мобильных */
    }

    .plan-card.featured:hover {
        transform: translateY(-8px);
    }

    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guarantees-card {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .balance-info-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.exchange-page-header {
    margin-bottom: 28px;
}

/* ===== СТАТИСТИКА ===== */
.exchange-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.exchange-stat-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeInUp 0.5s ease backwards;
    position: relative;
    overflow: hidden;
}

.exchange-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.exchange-stat-card:nth-child(1) { animation-delay: 0.1s; }
.exchange-stat-card:nth-child(2) { animation-delay: 0.2s; }
.exchange-stat-card:nth-child(3) { animation-delay: 0.3s; }

.exchange-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.exchange-stat-card.kinah::before {
    background: linear-gradient(90deg, #d4af37, #FFD700);
}

.exchange-stat-card.rate::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.exchange-stat-card.rate.rate-vip::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    height: 4px;
}

.exchange-stat-card.rate.rate-premium::before {
    background: linear-gradient(90deg, #00ffc6, #51b19c);
}

.exchange-stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(98, 32, 180, 0.4);
}

.exchange-stat-card.kinah .exchange-stat-icon {
    background: linear-gradient(135deg, #d4af37, #FFD700);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.5);
}

.exchange-stat-card.rate .exchange-stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.exchange-stat-card.rate.rate-vip .exchange-stat-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.5);
    animation: vip-icon-glow 2s ease-in-out infinite;
}

.exchange-stat-card.rate.rate-premium .exchange-stat-icon {
    background: linear-gradient(135deg, #00ffc6, #51b19c);
    box-shadow: 0 4px 16px rgba(0, 255, 198, 0.4);
}

.exchange-stat-content {
    flex: 1;
}

.exchange-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.exchange-stat-value span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0 2px;
}

.exchange-stat-card.kinah .exchange-stat-value {
    background: linear-gradient(135deg, #d4af37, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exchange-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== КАРТОЧКИ (общие стили) ===== */
.exchange-form-card,
.exchange-rates-card,
.exchange-conditions-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease backwards;
}

.exchange-form-card { animation-delay: 0.4s; }
.exchange-rates-card { animation-delay: 0.5s; }
.exchange-conditions-card { animation-delay: 0.6s; }

.exchange-form-header {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.08), rgba(255, 152, 0, 0.05));
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.exchange-form-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.exchange-form-title i {
    color: var(--primary);
    font-size: 18px;
}

.exchange-form-body {
    padding: 24px;
}

/* ===== ФОРМА ОБМЕНА ===== */
.exchange-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.exchange-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exchange-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.exchange-label i {
    color: var(--primary);
}

.exchange-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
    cursor: pointer;
    font-weight: 500;
}

.exchange-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(98, 32, 180, 0.15);
}

.exchange-hint {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== СВОДКА ===== */
.exchange-summary {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.06), rgba(255, 152, 0, 0.04));
    border: 1px solid rgba(98, 32, 180, 0.15);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.summary-row span {
    color: var(--text-muted);
    font-weight: 500;
}

.summary-row strong {
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}

.kinah-amount {
    background: linear-gradient(135deg, #d4af37, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.rate-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px !important;
    font-weight: 700 !important;
    -webkit-text-fill-color: initial !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
}

.rate-badge.regular {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.rate-badge.premium {
    background: linear-gradient(135deg, rgba(0, 255, 198, 0.2), rgba(81, 177, 156, 0.15));
    color: #00a884;
    border: 1px solid rgba(0, 255, 198, 0.3);
}

.rate-badge.vip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 152, 0, 0.15));
    color: #b8860b;
    border: 1px solid rgba(255, 215, 0, 0.4);
    animation: vip-badge-glow 2s ease-in-out infinite;
}

@keyframes vip-badge-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.6); }
}

/* ===== КНОПКА ОБМЕНА ===== */
.exchange-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(98, 32, 180, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.exchange-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.exchange-submit-btn:hover::before {
    left: 100%;
}

.exchange-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(98, 32, 180, 0.6);
}

.exchange-submit-btn:active {
    transform: translateY(-1px);
}

/* ===== РЕЙТЫ ===== */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rate-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.rate-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6c757d, #95a5a6);
}

.rate-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.rate-card.regular::before { background: linear-gradient(90deg, #6c757d, #95a5a6); }
.rate-card.premium::before { background: linear-gradient(90deg, #00ffc6, #51b19c); }
.rate-card.vip::before {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    animation: shop-shimmer 3s linear infinite;
    height: 4px;
}

.rate-card.vip {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.8), rgba(255, 240, 200, 0.7));
    border-color: rgba(255, 215, 0, 0.4);
}

.rate-card-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.rate-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-card-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rate-card.premium .rate-card-value {
    background: linear-gradient(135deg, #00a884, #51b19c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rate-card.vip .rate-card-value {
    background: linear-gradient(135deg, #d4af37, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
}

.rate-card-unit {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rate-card-mult {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.rate-card.vip .rate-card-mult {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* ===== УСЛОВИЯ ===== */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    transition: var(--transition);
    border-left: 3px solid var(--primary);
}

.condition-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.condition-item.warning {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.06), rgba(192, 57, 43, 0.04));
}

.condition-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.condition-content {
    flex: 1;
}

.condition-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.condition-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.condition-text b {
    color: var(--primary);
    font-weight: 700;
}

.condition-item.warning .condition-text b {
    color: #dc3545;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .exchange-stats-row,
    .rates-grid {
        grid-template-columns: 1fr;
    }

    .exchange-form-grid {
        grid-template-columns: 1fr;
    }

    .conditions-grid {
        grid-template-columns: 1fr;
    }

    .exchange-stat-value {
        font-size: 22px;
    }
}

/* ===== ЗАГОЛОВОК ===== */
.referral-page-header {
    margin-bottom: 28px;
}

/* ===== БЛОК НАГРАДЫ ===== */
.referral-reward-card {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.9), rgba(255, 240, 200, 0.85));
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
    animation: fadeInUp 0.5s ease backwards;
}

.reward-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation: glow-rotate 8s linear infinite;
    pointer-events: none;
}

@keyframes glow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.reward-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.reward-icon {
    font-size: 72px;
    line-height: 1;
    animation: gift-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 152, 0, 0.4));
    flex-shrink: 0;
}

@keyframes gift-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.reward-text {
    flex: 1;
}

.reward-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #856404;
    font-weight: 600;
    margin-bottom: 6px;
}

.reward-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.reward-amount {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #d4af37, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.reward-currency {
    font-size: 20px;
    font-weight: 700;
    color: #b8860b;
    letter-spacing: 1px;
}

.reward-condition {
    font-size: 13px;
    color: #5a4a1f;
    line-height: 1.5;
}

.reward-condition b {
    color: #8b6914;
    font-weight: 700;
}

/* ===== РЕФЕРАЛЬНАЯ ССЫЛКА ===== */
.referral-link-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease backwards;
    animation-delay: 0.1s;
}

.referral-link-header {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.08), rgba(255, 152, 0, 0.05));
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.referral-link-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.referral-link-title i {
    color: var(--primary);
    font-size: 18px;
}

.referral-link-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.referral-link-body {
    padding: 24px;
}

.referral-link-input-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.referral-link-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text);
    font-family: 'Consolas', 'Monaco', monospace;
    transition: var(--transition);
}

.referral-link-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(98, 32, 180, 0.15);
    background: #fff;
}

.referral-copy-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(98, 32, 180, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.referral-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 32, 180, 0.6);
}

.referral-copy-btn:active {
    transform: translateY(0);
}

/* ===== КНОПКИ "ПОДЕЛИТЬСЯ" ===== */
.referral-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: #fff;
    text-decoration: none;
}

.share-btn.discord {
    background: linear-gradient(135deg, #5865F2, #7289da);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.share-btn.discord:hover {
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.6);
}

.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #29b6f6);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.share-btn.telegram:hover {
    box-shadow: 0 6px 18px rgba(0, 136, 204, 0.6);
}

.share-btn.vk {
    background: linear-gradient(135deg, #4a76a8, #5181b8);
    box-shadow: 0 4px 12px rgba(74, 118, 168, 0.4);
}

.share-btn.vk:hover {
    box-shadow: 0 6px 18px rgba(74, 118, 168, 0.6);
}

.share-btn.copy-qr {
    background: linear-gradient(135deg, var(--accent), #ffb74d);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    color: #000;
}

.share-btn.copy-qr:hover {
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.6);
}

/* ===== СПИСОК РЕФЕРАЛОВ ===== */
.referral-list-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease backwards;
    animation-delay: 0.2s;
}

.referral-list-header {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.08), rgba(255, 152, 0, 0.05));
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.referral-list-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.referral-list-title i {
    color: var(--primary);
    font-size: 18px;
}

.referral-list-body {
    padding: 24px;
}

/* ===== СТАТИСТИКА РЕФЕРАЛОВ ===== */
.referral-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ref-stat-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ref-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.ref-stat-card.total::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.ref-stat-card.completed::before { background: linear-gradient(90deg, #28a745, #20c997); }
.ref-stat-card.pending::before { background: linear-gradient(90deg, var(--accent), #ffb74d); }

.ref-stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.ref-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.ref-stat-card.total .ref-stat-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 12px rgba(98, 32, 180, 0.3);
}

.ref-stat-card.completed .ref-stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.ref-stat-card.pending .ref-stat-icon {
    background: linear-gradient(135deg, var(--accent), #ffb74d);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.ref-stat-content {
    flex: 1;
}

.ref-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.ref-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ТАБЛИЦА РЕФЕРАЛОВ ===== */
.referral-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
}

.referral-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.referral-table thead th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.referral-table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.referral-table thead th:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.referral-table thead th i {
    margin-right: 6px;
    opacity: 0.8;
}

.referral-table tbody tr {
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    animation: fadeInUp 0.4s ease backwards;
}

.referral-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.referral-table tbody td {
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 13px;
    color: var(--text);
    vertical-align: middle;
}

.referral-table tbody td:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.referral-table tbody td:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Пользователь в таблице */
.ref-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ref-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(98, 32, 180, 0.3);
}

.ref-user-name {
    font-weight: 600;
    color: var(--text);
}

.ref-date {
    color: var(--text-muted);
    font-size: 12px;
}

/* Бейджи статусов */
.ref-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.ref-status-badge.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.1));
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.ref-status-badge.pending {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 183, 77, 0.1));
    color: #e67e22;
    border: 1px solid rgba(255, 152, 0, 0.3);
    animation: pending-pulse 2s ease-in-out infinite;
}

@keyframes pending-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 152, 0, 0); }
    50% { box-shadow: 0 0 10px rgba(255, 152, 0, 0.3); }
}

.reward-received {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #28a745;
    font-weight: 600;
    font-size: 12px;
}

.reward-received i {
    color: var(--accent);
}

.reward-pending {
    color: var(--text-muted);
    font-style: italic;
    font-size: 12px;
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.referral-empty {
    text-align: center;
    padding: 50px 20px;
}

.referral-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.referral-empty .empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.referral-empty .empty-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== КАК ЭТО РАБОТАЕТ ===== */
.referral-howto-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease backwards;
    animation-delay: 0.3s;
}

.howto-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.howto-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.howto-step:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.howto-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(98, 32, 180, 0.3);
}

.howto-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
}

.howto-content p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.howto-content b {
    color: var(--primary);
    font-weight: 700;
}

/* ===== TOAST УВЕДОМЛЕНИЕ ===== */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.copy-toast i {
    font-size: 18px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .reward-content {
        flex-direction: column;
        text-align: center;
    }

    .reward-amount {
        font-size: 36px;
    }

    .referral-stats-row {
        grid-template-columns: 1fr;
    }

    .howto-steps {
        grid-template-columns: 1fr;
    }

    .referral-link-input-wrap {
        flex-direction: column;
    }

    .referral-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .referral-table thead th,
    .referral-table tbody td {
        padding: 10px 8px;
        font-size: 11px;
    }

    .ref-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.redeem-page-header {
    margin-bottom: 28px;
    text-align: center;
}

/* ===== ГЛАВНАЯ КАРТОЧКА ===== */
.redeem-main-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 48px 32px 40px;
    margin: 0 auto 24px;
    max-width: 600px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

/* Декоративные плавающие элементы */
.redeem-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.4;
    filter: blur(40px);
}

.redeem-decor-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -80px;
    left: -80px;
    animation: decor-float 8s ease-in-out infinite;
}

.redeem-decor-2 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -60px;
    right: -60px;
    animation: decor-float 10s ease-in-out infinite reverse;
}

.redeem-decor-3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #FFD700 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation: decor-float 12s ease-in-out infinite;
}

@keyframes decor-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.1); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ===== ИКОНКА КОДА ===== */
.redeem-icon-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redeem-icon {
    font-size: 56px;
    line-height: 1;
    z-index: 2;
    animation: icon-swing 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(98, 32, 180, 0.3));
}

@keyframes icon-swing {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.05); }
}

.redeem-icon-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px dashed rgba(98, 32, 180, 0.3);
    border-radius: 50%;
    animation: ring-spin 15s linear infinite;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== ЗАГОЛОВОК ФОРМЫ ===== */
.redeem-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
    position: relative;
    z-index: 1;
}

.redeem-form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 28px 0;
    position: relative;
    z-index: 1;
}

/* ===== ПОЛЕ ВВОДА ===== */
.redeem-form {
    position: relative;
    z-index: 1;
}

.redeem-input-wrap {
    position: relative;
    margin-bottom: 20px;
}

.redeem-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
    opacity: 0.6;
    pointer-events: none;
    transition: var(--transition);
}

.redeem-input {
    width: 100%;
    padding: 18px 20px 18px 48px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(98, 32, 180, 0.15);
    border-radius: var(--radius);
    font-size: 20px;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    color: var(--text);
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.redeem-input::placeholder {
    color: #bbb;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.redeem-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(98, 32, 180, 0.15),
                inset 0 2px 4px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.redeem-input:focus + .redeem-input-icon,
.redeem-input-wrap:focus-within .redeem-input-icon {
    opacity: 1;
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* ===== КНОПКА АКТИВАЦИИ ===== */
.redeem-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(98, 32, 180, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.redeem-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.redeem-submit-btn:hover::before {
    left: 100%;
}

.redeem-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(98, 32, 180, 0.6);
}

.redeem-submit-btn:active {
    transform: translateY(-1px);
}

.redeem-submit-btn i {
    font-size: 18px;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ КАРТОЧКИ ===== */
.redeem-extra-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease backwards;
    animation-delay: 0.2s;
}

/* Подсказка про подарок */
.redeem-hint-card {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.8), rgba(255, 240, 200, 0.7));
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.redeem-hint-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    animation: shop-shimmer 3s linear infinite;
}

.redeem-hint-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hint-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
    animation: gift-bounce 2s ease-in-out infinite;
}

.hint-content {
    flex: 1;
}

.hint-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
}

.hint-content p {
    font-size: 12px;
    color: #5a4a1f;
    line-height: 1.5;
    margin: 0;
}

/* История активаций */
.redeem-history-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.redeem-history-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.redeem-history-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
}

.redeem-history-card:hover .history-arrow {
    background: var(--primary);
    color: #fff;
    transform: translateX(4px);
}

.history-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(98, 32, 180, 0.4);
}

.history-content {
    flex: 1;
}

.history-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px 0;
}

.history-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.history-arrow {
    width: 32px;
    height: 32px;
    background: rgba(98, 32, 180, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 12px;
    flex-shrink: 0;
    transition: var(--transition);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .redeem-main-card {
        padding: 32px 20px;
    }

    .redeem-input {
        font-size: 16px;
        padding: 14px 16px 14px 42px;
        letter-spacing: 1px;
    }

    .redeem-input::placeholder {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .redeem-extra-row {
        grid-template-columns: 1fr;
    }

    .redeem-form-title {
        font-size: 18px;
    }

    .redeem-icon-wrap {
        width: 80px;
        height: 80px;
    }

    .redeem-icon {
        font-size: 44px;
    }
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.logs-page-header {
    margin-bottom: 28px;
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.logs-empty-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease backwards;
}

.logs-empty-card .empty-icon {
    font-size: 72px;
    margin-bottom: 16px;
    opacity: 0.6;
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logs-empty-card .empty-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.logs-empty-card .empty-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.empty-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(98, 32, 180, 0.4);
}

.empty-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(98, 32, 180, 0.6);
    color: #fff;
    text-decoration: none;
}

/* ===== КАРТОЧКА ТАБЛИЦЫ ===== */
.logs-table-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease backwards;
}

.logs-table-header {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.08), rgba(255, 152, 0, 0.05));
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logs-table-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logs-table-title i {
    color: var(--primary);
    font-size: 18px;
}

.logs-count-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(98, 32, 180, 0.3);
}

.logs-table-wrap {
    padding: 20px;
    overflow-x: auto;
}

/* ===== КАСТОМНАЯ ТАБЛИЦА ===== */
.custom-logs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Отступ между строками */
}

.custom-logs-table thead th {
    background: transparent;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
}

.custom-logs-table thead th i {
    margin-right: 6px;
    opacity: 0.7;
}

.custom-logs-table tbody tr.log-row {
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    animation: fadeInUp 0.4s ease backwards;
}

.custom-logs-table tbody tr.log-row:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.custom-logs-table tbody td {
    padding: 14px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

/* Закругление краёв строки */
.custom-logs-table tbody td:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.custom-logs-table tbody td:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== ЯЧЕЙКА: ДАТА ===== */
.log-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-icon {
    width: 36px;
    height: 36px;
    background: rgba(98, 32, 180, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.date-text {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

/* ===== ЯЧЕЙКА: КОД ===== */
.log-code {
    min-width: 200px;
}

.code-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 1px;
    transition: var(--transition);
}

.log-row:hover .code-badge {
    background: rgba(98, 32, 180, 0.08);
    border-color: rgba(98, 32, 180, 0.2);
    color: var(--primary);
}

.code-badge i {
    opacity: 0.6;
    font-size: 12px;
}

/* ===== ЯЧЕЙКА: НАГРАДА ===== */
.log-reward {
    text-align: right;
}

.reward-amount {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #d4af37, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.reward-amount i {
    -webkit-text-fill-color: #FFA500; /* Иконка тоже золотая */
    font-size: 16px;
}

.reward-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .logs-table-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .custom-logs-table thead {
        display: none; /* Скрываем заголовки на мобильных */
    }

    .custom-logs-table tbody tr.log-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        margin-bottom: 12px;
        border-radius: var(--radius);
    }

    .custom-logs-table tbody td {
        padding: 0;
        border: none;
        border-radius: 0 !important;
    }

    .log-date {
        order: 1;
    }

    .log-code {
        order: 2;
        min-width: auto;
    }

    .code-badge {
        width: 100%;
        justify-content: center;
    }

    .log-reward {
        order: 3;
        text-align: center;
        padding-top: 12px;
        border-top: 1px dashed rgba(0, 0, 0, 0.1);
    }

    .reward-amount {
        justify-content: center;
        font-size: 22px;
    }
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.ban-page-header {
    margin-bottom: 28px;
}

/* ===== КАРТОЧКИ СЕКЦИЙ ===== */
.ban-section-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease backwards;
    position: relative;
}

.ban-section-card.permanent { animation-delay: 0.1s; }
.ban-section-card.temporal { animation-delay: 0.2s; }

/* Декоративная полоса сверху */
.ban-section-card.permanent::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.ban-section-card.temporal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.ban-section-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ban-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ban-section-card.permanent .ban-section-title i { color: #dc3545; }
.ban-section-card.temporal .ban-section-title i { color: #e0a800; }

.ban-section-body {
    padding: 24px;
}

/* ===== ПУСТОЕ СОСТОЯНИЕ (ПОЗИТИВНОЕ) ===== */
.ban-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.05));
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: var(--radius);
}

.ban-empty-state .empty-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 12px;
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.ban-empty-state .empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #155724;
    margin-bottom: 6px;
}

.ban-empty-state .empty-text {
    font-size: 13px;
    color: #155724;
    opacity: 0.8;
}

/* ===== ТАБЛИЦА БЛОКИРОВОК ===== */
.ban-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
}

.custom-ban-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Отступ между строками */
}

.custom-ban-table thead th {
    background: transparent;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
}

.custom-ban-table thead th i {
    margin-right: 6px;
    opacity: 0.7;
}

.custom-ban-table tbody tr.ban-row {
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    animation: fadeInUp 0.4s ease backwards;
}

.custom-ban-table tbody tr.ban-row:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.custom-ban-table tbody td {
    padding: 14px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
    font-size: 13px;
    color: var(--text);
}

/* Закругление краёв строки */
.custom-ban-table tbody td:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.custom-ban-table tbody td:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Ячейка ID */
.ban-id {
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 12px;
}

/* Ячейка Причины */
.ban-reason {
    font-weight: 500;
    color: var(--text);
    max-width: 300px;
    word-wrap: break-word;
}

/* Ячейка Даты */
.ban-date {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* Ячейка Длительности */
.ban-duration {
    font-weight: 600;
    color: #e0a800;
    white-space: nowrap;
}

/* ===== БЕЙДЖИ СТАТУСА ===== */
.ban-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ban-status-badge.status-open {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(200, 35, 51, 0.1));
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(220, 53, 69, 0); }
    50% { box-shadow: 0 0 10px rgba(220, 53, 69, 0.3); }
}

.ban-status-badge.status-locked {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15), rgba(108, 117, 125, 0.1));
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* ===== КНОПКА "ПОДРОБНЕЕ" ===== */
.ban-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(98, 32, 180, 0.3);
}

.ban-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 32, 180, 0.5);
    color: #fff;
    text-decoration: none;
}

.ban-view-btn i {
    font-size: 11px;
}

.text-right {
    text-align: right;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .custom-ban-table thead {
        display: none;
    }

    .custom-ban-table tbody tr.ban-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px;
        margin-bottom: 12px;
        border-radius: var(--radius);
    }

    .custom-ban-table tbody td {
        padding: 0;
        border: none;
        border-radius: 0 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .custom-ban-table tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        margin-right: 12px;
    }

    /* Добавляем data-label через CSS для мобильных, если нужно, 
       но проще добавить их прямо в PHP выше, если мобильная версия критична.
       Ниже упрощённый вариант для мобильных: */
    
    .ban-id { order: 1; font-size: 14px; color: var(--primary); }
    .ban-reason { order: 2; font-size: 14px; font-weight: 600; }
    .ban-date { order: 3; }
    .ban-duration { order: 4; }
    .ban-status-badge { order: 5; align-self: flex-start; }
    .ban-view-btn { order: 6; width: 100%; justify-content: center; padding: 10px; }
    
    .text-right {
        text-align: left;
    }
}

/* ===== ОБЁРТКА И ЦЕНТРИРОВАНИЕ ===== */
.password-change-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-bottom: 40px;
}

/* ===== ГЛАВНАЯ КАРТОЧКА ===== */
.password-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

/* Декоративное свечение на фоне */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(98, 32, 180, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: glow-rotate 15s linear infinite;
}

@keyframes glow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== ЗАГОЛОВОК КАРТОЧКИ ===== */
.password-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.password-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-icon-wrap > i {
    font-size: 36px;
    color: var(--primary);
    z-index: 2;
    animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.icon-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px dashed rgba(98, 32, 180, 0.3);
    border-radius: 50%;
    animation: ring-spin 20s linear infinite;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.password-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ===== ФОРМА ===== */
.modern-password-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
    pointer-events: none;
    z-index: 2;
}

.modern-password-form input[type="password"] {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
    font-family: 'Roboto', sans-serif;
}

.modern-password-form input[type="password"]::placeholder {
    color: #aaa;
    font-weight: 400;
}

.modern-password-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(98, 32, 180, 0.1);
}

.modern-password-form input[type="password"]:focus + .input-icon,
.input-wrap:focus-within .input-icon {
    color: var(--primary);
}

/* ===== ИНФОРМАЦИОННЫЙ БЛОК ===== */
.security-info-box {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.06), rgba(255, 152, 0, 0.04));
    border: 1px solid rgba(98, 32, 180, 0.15);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.info-icon {
    width: 32px;
    height: 32px;
    background: rgba(98, 32, 180, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-text {
    font-size: 12px;
    color: var(--text);
    line-height: 1.5;
}

.info-text strong {
    color: var(--primary);
    font-weight: 700;
    word-break: break-all;
}

/* ===== КНОПКА ОТПРАВКИ ===== */
.submit-password-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(98, 32, 180, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-password-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.submit-password-btn:hover::before {
    left: 100%;
}

.submit-password-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(98, 32, 180, 0.6);
}

.submit-password-btn:active {
    transform: translateY(-1px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 576px) {
    .password-card {
        padding: 28px 20px;
    }

    .password-header h3 {
        font-size: 20px;
    }

    .password-icon-wrap {
        width: 64px;
        height: 64px;
    }

    .password-icon-wrap > i {
        font-size: 28px;
    }
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.security-page-header {
    margin-bottom: 28px;
    text-align: center;
}

/* ===== КАРТОЧКА "УЖЕ НАСТРОЕНО" ===== */
.security-locked-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.05));
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease backwards;
}

.locked-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.locked-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #155724;
    margin: 0 0 6px 0;
}

.locked-content p {
    font-size: 14px;
    color: #155724;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

/* ===== ОБЁРТКА ФОРМЫ ===== */
.security-form-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 40px;
}

/* ===== ГЛАВНАЯ КАРТОЧКА ФОРМЫ ===== */
.security-form-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 650px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease backwards;
    position: relative;
}

/* ===== БЛОК ВОПРОСА ===== */
.question-block {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 0;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.question-block:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.question-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.question-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

/* ===== ПОЛЯ ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
    pointer-events: none;
    z-index: 2;
}

.modern-select,
.modern-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
    font-family: 'Roboto', sans-serif;
    appearance: none;
    -webkit-appearance: none;
}

.modern-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.modern-select:focus,
.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(98, 32, 180, 0.1);
}

.input-wrap:focus-within .input-icon {
    color: var(--primary);
}

.modern-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

.form-divider span {
    padding: 0 16px;
}

/* ===== БЛОК СОВЕТОВ ===== */
.security-tips-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 28px 0 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tips-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tips-content h5 {
    font-size: 14px;
    font-weight: 700;
    color: #856404;
    margin: 0 0 8px 0;
}

.tips-content ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: #856404;
    line-height: 1.6;
}

.tips-content ul li {
    margin-bottom: 4px;
}

/* ===== КНОПКА ОТПРАВКИ ===== */
.security-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(98, 32, 180, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.security-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.security-submit-btn:hover::before {
    left: 100%;
}

.security-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(98, 32, 180, 0.6);
}

.security-submit-btn:active {
    transform: translateY(-1px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .security-form-card {
        padding: 24px 20px;
    }

    .question-block {
        padding: 20px 16px;
    }

    .security-locked-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .security-tips-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tips-content ul {
        text-align: left;
    }
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.pin-page-header {
    margin-bottom: 28px;
    text-align: center;
}

/* ===== КАРТОЧКА "УЖЕ УСТАНОВЛЕН" ===== */
.pin-locked-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.05));
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease backwards;
}

.pin-locked-card .locked-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.pin-locked-card .locked-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #155724;
    margin: 0 0 6px 0;
}

.pin-locked-card .locked-content p {
    font-size: 14px;
    color: #155724;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

/* ===== ОБЁРТКА ФОРМЫ ===== */
.pin-form-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 40px;
}

/* ===== ГЛАВНАЯ КАРТОЧКА ФОРМЫ ===== */
.pin-form-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease backwards;
    text-align: center;
    position: relative;
}

/* ===== ИКОНКА ===== */
.pin-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-icon-wrap > i {
    font-size: 36px;
    color: var(--primary);
    z-index: 2;
    animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.pin-icon-wrap .icon-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px dashed rgba(98, 32, 180, 0.3);
    border-radius: 50%;
    animation: ring-spin 20s linear infinite;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pin-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.pin-form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 28px 0;
    line-height: 1.5;
}

/* ===== ПОЛЕ ВВОДА PIN ===== */
.pin-input-group {
    margin-bottom: 28px;
}

.pin-input {
    width: 100%;
    max-width: 280px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    font-size: 32px;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 16px; /* Делает цифры похожими на отдельные ячейки */
    text-align: center;
    color: var(--primary);
    transition: var(--transition);
}

.pin-input::placeholder {
    color: #ccc;
    letter-spacing: 16px;
    font-weight: 400;
}

.pin-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(98, 32, 180, 0.15);
    letter-spacing: 18px; /* Лёгкое расширение при фокусе для эффекта */
}

/* ===== БЛОК СОВЕТОВ ===== */
.pin-tips-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
}

.pin-tips-box .tips-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pin-tips-box .tips-content h5 {
    font-size: 14px;
    font-weight: 700;
    color: #856404;
    margin: 0 0 8px 0;
}

.pin-tips-box .tips-content ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: #856404;
    line-height: 1.6;
}

.pin-tips-box .tips-content ul li {
    margin-bottom: 4px;
}

.pin-tips-box .tips-content code {
    background: rgba(133, 100, 4, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
}

/* ===== КНОПКА ОТПРАВКИ ===== */
.pin-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(98, 32, 180, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.pin-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.pin-submit-btn:hover::before {
    left: 100%;
}

.pin-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(98, 32, 180, 0.6);
}

.pin-submit-btn:active {
    transform: translateY(-1px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 576px) {
    .pin-form-card {
        padding: 28px 20px;
    }

    .pin-input {
        font-size: 28px;
        letter-spacing: 12px;
        max-width: 100%;
    }

    .pin-input::placeholder {
        letter-spacing: 12px;
    }

    .pin-locked-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .pin-tips-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pin-tips-box .tips-content ul {
        text-align: left;
    }
}

/* ===== ОБЁРТКА ===== */
.validate-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 40px;
}

/* ===== ОСНОВНАЯ КАРТОЧКА ===== */
.validate-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease backwards;
    text-align: center;
    position: relative;
}

/* ===== ИКОНКА ===== */
.validate-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.validate-icon-wrap > i {
    font-size: 36px;
    color: var(--primary);
    z-index: 2;
    animation: icon-pulse 3s ease-in-out infinite;
}

.validate-icon-wrap.success > i {
    color: #28a745;
    animation: none;
}

.validate-icon-wrap .icon-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px dashed rgba(98, 32, 180, 0.3);
    border-radius: 50%;
    animation: ring-spin 20s linear infinite;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.validate-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.validate-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* ===== ПРЕДУПРЕЖДЕНИЕ ДЛЯ СОТРУДНИКОВ ===== */
.staff-warning-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.08));
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.staff-warning-box > i {
    font-size: 20px;
    color: #e67e22;
    flex-shrink: 0;
}

.staff-warning-box > span {
    font-size: 12px;
    color: #856404;
    line-height: 1.5;
}

.staff-warning-box strong {
    font-weight: 700;
    text-decoration: underline;
}

/* ===== ПОЛЯ ФОРМЫ ===== */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
    pointer-events: none;
    z-index: 2;
}

.modern-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
    font-family: 'Roboto', sans-serif;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(98, 32, 180, 0.1);
}

.input-wrap:focus-within .input-icon {
    color: var(--primary);
}

/* ===== КНОПКА ===== */
.validate-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(98, 32, 180, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.validate-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.validate-submit-btn:hover::before {
    left: 100%;
}

.validate-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(98, 32, 180, 0.6);
}

/* ===== БЛОК ОТОБРАЖЕНИЯ КОДА (УСПЕХ) ===== */
.code-display-block {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 24px 20px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.code-display-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    background-size: 200% 100%;
    animation: shop-shimmer 3s linear infinite;
}

.code-label {
    font-size: 10px;
    font-weight: 700;
    color: #20c997;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.code-value {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    word-break: break-all;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(32, 201, 151, 0.5);
    user-select: all; /* Позволяет выделить всё одним кликом */
    cursor: text;
}

.security-warning-small {
    font-size: 12px;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(220, 53, 69, 0.3);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 576px) {
    .validate-card {
        padding: 28px 20px;
    }

    .code-value {
        font-size: 15px;
    }

    .staff-warning-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== ОБЁРТКА И ЦЕНТРИРОВАНИЕ ===== */
.email-change-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-bottom: 40px;
}

/* ===== ГЛАВНАЯ КАРТОЧКА ===== */
.email-change-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 550px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: fadeInUp 0.6s ease backwards;
    position: relative;
    overflow: hidden;
}

/* ===== АНИМИРОВАННАЯ ИКОНКА ===== */
.card-icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrap > i {
    font-size: 42px;
    color: var(--primary);
    z-index: 2;
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.card-icon-wrap .icon-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px dashed rgba(98, 32, 180, 0.25);
    border-radius: 50%;
    animation: ring-spin 25s linear infinite;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== ТЕКСТ ===== */
.card-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
}

.card-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.card-description strong {
    color: var(--text);
    font-weight: 600;
}

/* ===== БЛОК БЕЗОПАСНОСТИ ===== */
.security-note {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.06), rgba(138, 63, 212, 0.04));
    border: 1px solid rgba(98, 32, 180, 0.15);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: left;
}

.security-note > i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.security-note > span {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
}

/* ===== КНОПКА ПЕРЕХОДА ===== */
.forum-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(98, 32, 180, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.forum-action-btn:hover::before {
    left: 100%;
}

.forum-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(98, 32, 180, 0.6);
    color: #fff;
    text-decoration: none;
}

.forum-action-btn:active {
    transform: translateY(-1px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 576px) {
    .email-change-card {
        padding: 32px 24px;
    }

    .card-title {
        font-size: 22px;
    }

    .security-note {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.verify-page-header {
    margin-bottom: 28px;
    text-align: center;
}

/* ===== ОБЁРТКА ===== */
.verify-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 40px;
}

/* ===== ОСНОВНАЯ КАРТОЧКА ===== */
.verify-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease backwards;
    text-align: center;
    position: relative;
}

/* ===== ИКОНКА ===== */
.verify-icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-icon-wrap > i {
    font-size: 42px;
    z-index: 2;
}

.verify-icon-wrap.pending > i {
    color: var(--primary);
    animation: icon-float 3s ease-in-out infinite;
}

.verify-icon-wrap.sent > i {
    color: #0088cc;
    animation: icon-send 2s ease-in-out infinite;
}

.verify-icon-wrap.verified > i {
    color: #28a745;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes icon-send {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(5px) rotate(-5deg); }
}

.verify-icon-wrap .icon-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px dashed rgba(98, 32, 180, 0.25);
    border-radius: 50%;
    animation: ring-spin 25s linear infinite;
}

/* ===== ЗАГОЛОВКИ ===== */
.verify-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.verify-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* ===== БЛОК EMAIL ===== */
.current-email-block,
.verified-email-display,
.sent-email-display {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.email-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.email-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.email-value i {
    color: var(--primary);
    font-size: 18px;
}

.email-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.email-status.unverified {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.verified-email-display,
.sent-email-display {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.05));
    border-color: rgba(40, 167, 69, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #155724;
}

.sent-email-display {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.08), rgba(41, 182, 246, 0.05));
    border-color: rgba(0, 136, 204, 0.2);
    color: #004d73;
}

.verified-email-display i,
.sent-email-display i {
    font-size: 20px;
}

/* ===== ПРЕИМУЩЕСТВА (для verified) ===== */
.verified-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(40, 167, 69, 0.06);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #155724;
    border-left: 3px solid #28a745;
}

.benefit-item i {
    color: #28a745;
    font-size: 14px;
}

/* ===== ШАГИ (для sent) ===== */
.email-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.email-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.email-steps .step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0088cc, #29b6f6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.email-steps .step-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    max-width: 90px;
}

.email-steps .step-arrow {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.5;
}

/* ===== ПОДСКАЗКА ===== */
.email-hint {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 12px;
    color: #856404;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.email-hint i {
    color: #e67e22;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== ИНФОРМАЦИОННЫЙ БЛОК ===== */
.verify-info-box {
    background: linear-gradient(135deg, rgba(98, 32, 180, 0.06), rgba(138, 63, 212, 0.04));
    border: 1px solid rgba(98, 32, 180, 0.15);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
}

.verify-info-box > i {
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.verify-info-box .info-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.verify-info-box .info-text strong {
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.verify-info-box .info-text ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: var(--text-muted);
}

.verify-info-box .info-text ul li {
    margin-bottom: 4px;
}

/* ===== КНОПКА ===== */
.verify-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(98, 32, 180, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.verify-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.verify-submit-btn:hover::before {
    left: 100%;
}

.verify-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(98, 32, 180, 0.6);
    color: #fff;
    text-decoration: none;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 576px) {
    .verify-card {
        padding: 28px 20px;
    }

    .verify-title {
        font-size: 20px;
    }

    .email-steps {
        flex-direction: column;
    }

    .email-steps .step-arrow {
        transform: rotate(90deg);
    }

    .verify-info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .verify-info-box .info-text ul {
        text-align: left;
    }
}

.character-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.btn-action {
    flex: 1;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-inventory {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-inventory:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-enchant {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-enchant:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

/* ===== КОМПАКТНЫЙ ФИЛЬТР В ОДНУ ЛИНИЮ ===== */
.auction-filters.compact-line {
    background: linear-gradient(135deg, rgba(98,32,180,0.08), rgba(255,152,0,0.06));
    border: 1px solid rgba(98,32,180,0.2);
    border-radius: var(--radius-lg);
    padding: 10px 15px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.filters-form-inline {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}
.filter-input-group {
    display: flex;
    flex-direction: column;
    min-width: 80px;
    flex: 0 0 auto;
}
.filter-input-group.grow {
    flex: 1 1 150px;
}
.filter-input-group label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
}
.filter-input-group input {
    padding: 6px 10px;
    border: 1px solid rgba(98,32,180,0.2);
    border-radius: 6px;
    font-size: 12px;
    background: rgba(255,255,255,0.9);
    width: 100%;
    box-sizing: border-box;
}
.filter-actions-inline {
    display: flex;
    gap: 5px;
    margin-bottom: 1px;
}
.btn-filter-sm, .btn-reset-sm {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.btn-filter-sm {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.btn-reset-sm {
    background: rgba(0,0,0,0.06);
    color: var(--text-muted);
    text-decoration: none;
}
.btn-filter-sm:hover { transform: translateY(-1px); }
.btn-reset-sm:hover { background: rgba(0,0,0,0.1); }

/* ===== ПОДСВЕТКА АКТИВНОГО АУКЦИОНА ===== */
.auction-card.active-auction {
    border-color: #f39c12 !important;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3) !important;
    animation: pulseBorder 2s infinite;
}
@keyframes pulseBorder {
    0% { box-shadow: 0 0 10px rgba(243, 156, 18, 0.2); }
    50% { box-shadow: 0 0 20px rgba(243, 156, 18, 0.5); }
    100% { box-shadow: 0 0 10px rgba(243, 156, 18, 0.2); }
}

/* Остальные стили */
.auction-nav { background: linear-gradient(135deg, rgba(98,32,180,0.08), rgba(255,152,0,0.06)); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(98,32,180,0.15); padding: 16px 0; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.auction-nav-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.auction-nav-item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(255,255,255,0.9); border: 2px solid rgba(98,32,180,0.15); border-radius: 24px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; transition: all 0.3s ease; }
.auction-nav-item:hover { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.auction-nav-item.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-color: var(--primary); }
.auction-container { max-width: 1400px; margin: 0 auto; padding: 0 20px 40px; }
.auction-header { text-align: center; margin-bottom: 30px; }
.auction-title { font-size: 36px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0 0 8px 0; }
.auction-subtitle { font-size: 14px; color: var(--text-muted); margin: 0 0 12px 0; }
.user-pts-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: linear-gradient(135deg, rgba(98,32,180,0.1), rgba(255,152,0,0.08)); border: 1px solid rgba(98,32,180,0.2); border-radius: 20px; font-size: 13px; }
.user-pts-badge strong { color: var(--primary); font-size: 15px; }
.auction-stats { display: flex; gap: 16px; margin-bottom: 24px; justify-content: center; }
.stat-item { background: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius); padding: 10px 20px; display: flex; align-items: center; gap: 10px; }
.stat-item i { font-size: 20px; color: var(--primary); }
.stat-value { font-size: 20px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 30px; }
.auction-card {
background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
border: 2px solid rgba(98,32,180,0.2);
border-radius: 14px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(98,32,180,0.1), 0 2px 4px rgba(0,0,0,0.05);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
position: relative;
}
.auction-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
opacity: 0.6;
z-index: 1;
}
.auction-card:hover {
transform: translateY(-6px);
box-shadow: 0 12px 32px rgba(98,32,180,0.25), 0 4px 8px rgba(0,0,0,0.1);
border-color: var(--primary);
}
.auction-card:hover::before { opacity: 1; }
.card-top {
display: flex;
gap: 10px;
padding: 12px;
background: linear-gradient(135deg, rgba(98,32,180,0.08), rgba(255,152,0,0.05));
align-items: center;
border-bottom: 2px solid rgba(98,32,180,0.1);
}
.item-icon-wrapper {
position: relative;
width: 64px;
height: 64px;
flex-shrink: 0;
border-radius: 10px;
padding: 4px;
}
.item-icon {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
transition: transform 0.3s ease;
}
.auction-card:hover .item-icon { transform: scale(1.1); }
.badge-amplified {
position: absolute;
top: -4px;
right: -4px;
background: linear-gradient(135deg, #f39c12, #e67e22);
color: #fff;
font-size: 9px;
font-weight: 800;
padding: 1px 3px;
border-radius: 5px;
box-shadow: 0 2px 6px rgba(243,156,18,0.5);
animation: pulse 2s infinite;
z-index: 2;
}
.skill-corner-badge {
position: absolute;
bottom: -6px;
left: -6px;
width: 28px;
height: 28px;
border-radius: 50%;
background: linear-gradient(135deg, #9c27b0, #673ab7);
border: 2px solid #fff;
box-shadow: 0 2px 6px rgba(156, 39, 176, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1);
padding: 0;
margin: 0;
z-index: 3;
overflow: hidden;
box-sizing: content-box;
}
.skill-corner-badge img {
display: block;
height: 150%;
margin: 0;
padding: 0;
object-fit: cover;
object-position: center center;
image-rendering: auto;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.08); }
}
.seller-info-mini {
flex: 1;
min-width: 0;
display: flex;
gap: 2px;
}
.race-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 10px;
font-size: 9px;
font-weight: 700;
width: fit-content;
box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.race-badge.elyos {
background: linear-gradient(135deg, rgba(52,152,219,0.2), rgba(41,128,185,0.15));
color: #2980b9;
border: 1px solid rgba(52,152,219,0.4);
}
.race-badge.asmodian {
background: linear-gradient(135deg, rgba(231,76,60,0.2), rgba(192,57,43,0.15));
color: #c0392b;
border: 1px solid rgba(231,76,60,0.4);
}
.race-badge.unknown {
background: rgba(108,117,125,0.2);
color: #6c757d;
border: 1px solid rgba(108,117,125,0.3);
}
.seller-name-mini {
font-size: 12px;
font-weight: 700;
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-body {
padding: 10px 12px;
flex: 1;
background: rgba(255,255,255,0.5);
display: flex;
flex-direction: column;
}
.item-name {
font-size: 13px;
font-weight: 700;
color: var(--text);
margin: 0 0 4px 0;
text-align: center;
min-height: 32px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.item-id-line {
text-align: center;
font-size: 10px;
color: var(--text-muted);
margin-bottom: 6px;
font-family: 'Courier New', monospace;
}
.id-value {
color: var(--primary);
font-weight: 700;
}
.item-stats {
display: flex;
gap: 3px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 6px;
}
.stat-badge {
padding: 2px 6px;
border-radius: 6px;
font-size: 10px;
font-weight: 800;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stat-badge.enchant {
background: linear-gradient(135deg, rgba(231,76,60,0.2), rgba(192,57,43,0.15));
color: #e74c3c;
border: 1px solid rgba(231,76,60,0.4);
}
.stat-badge.enchant-bonus {
background: linear-gradient(135deg, rgba(156,39,176,0.2), rgba(123,31,162,0.15));
color: #9c27b0;
border: 1px solid rgba(156,39,176,0.4);
}
.stat-badge.authorize {
background: linear-gradient(135deg, rgba(255,152,0,0.2), rgba(230,126,34,0.15));
color: #e67e22;
border: 1px solid rgba(255,152,0,0.4);
}
.stat-badge.packed {
background: linear-gradient(135deg, rgba(52,152,219,0.2), rgba(41,128,185,0.15));
color: #3498db;
border: 1px solid rgba(52,152,219,0.4);
}
.stat-badge.qty {
background: linear-gradient(135deg, rgba(108,117,125,0.2), rgba(84,93,103,0.15));
color: #6c757d;
border: 1px solid rgba(108,117,125,0.4);
}
.skill-line {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
padding: 3px 8px;
background: linear-gradient(135deg, rgba(156,39,176,0.1), rgba(103,58,183,0.08));
border: 1px solid rgba(156,39,176,0.3);
border-radius: 6px;
font-size: 10px;
font-weight: 700;
color: #7b1fa2;
margin-top: 4px;
}
.skill-line i {
color: #9c27b0;
}
.extra-info {
padding: 8px 12px;
background: linear-gradient(135deg, rgba(52,152,219,0.04), rgba(156,39,176,0.04));
border-top: 1px dashed rgba(98,32,180,0.15);
display: flex;
flex-direction: column;
gap: 4px;
}
.extra-row {
display: flex;
align-items: center;
gap: 4px;
font-size: 10px;
padding: 3px 6px;
border-radius: 5px;
background: rgba(255,255,255,0.7);
border: 1px solid rgba(0,0,0,0.05);
}
.extra-row.fusion { border-left: 3px solid #3498db; }
.extra-row.skin { border-left: 3px solid #9c27b0; }
.extra-label { font-weight: 700; color: var(--text); flex-shrink: 0; }
.extra-value { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 9px; }
.extra-id { color: var(--text-muted); font-family: 'Courier New', monospace; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.expire-section {
padding: 8px 12px;
background: linear-gradient(135deg, rgba(231,76,60,0.06), rgba(243,156,18,0.06));
border-top: 1px solid rgba(231,76,60,0.2);
border-bottom: 1px solid rgba(231,76,60,0.2);
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.expire-section.urgent {
background: linear-gradient(135deg, rgba(231,76,60,0.15), rgba(192,57,43,0.1));
animation: urgentPulse 2s infinite;
}
.expire-section.expired {
background: linear-gradient(135deg, rgba(108,117,125,0.2), rgba(84,93,103,0.15));
}
@keyframes urgentPulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.expire-header {
display: flex;
align-items: center;
gap: 6px;
font-size: 10px;
color: var(--text-muted);
font-weight: 600;
}
.expire-header i {
color: #e67e22;
font-size: 12px;
}
.expire-time {
font-size: 11px;
font-weight: 800;
}
.expire-value {
color: #e67e22;
}
.expire-section.urgent .expire-value {
color: #e74c3c;
}
.expire-expired {
color: #6c757d;
font-style: italic;
}
.bid-info-block { 
    background: rgba(255,255,255,0.5); 
    border-radius: 8px; 
    padding: 8px; 
    margin-top: 10px; 
    border: 1px solid rgba(98,32,180,0.1);
}
.current-bid { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.current-bid strong { color: #28a745; font-size: 15px; }
.last-bidder { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.last-bidder span.me { color: var(--primary); font-weight: bold; }
.stones-spoiler {
border-top: 1px dashed rgba(156,39,176,0.2);
background: linear-gradient(135deg, rgba(156,39,176,0.03), rgba(103,58,183,0.03));
}
.stones-summary {
padding: 10px 12px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
font-weight: 700;
color: #7b1fa2;
user-select: none;
list-style: none;
transition: background 0.2s ease;
}
.stones-summary::-webkit-details-marker {
display: none;
}
.stones-summary:hover {
background: rgba(156,39,176,0.08);
}
.stones-summary i:first-child {
color: #9c27b0;
font-size: 13px;
}
.stones-summary span {
flex: 1;
}
.stones-count-badge {
background: linear-gradient(135deg, #9c27b0, #673ab7);
color: #fff;
padding: 2px 8px;
border-radius: 10px;
font-size: 9px;
font-weight: 800;
flex: 0 0 auto;
}
.stones-arrow {
font-size: 10px;
color: #9c27b0;
transition: transform 0.3s ease;
flex: 0 0 auto;
}
.stones-spoiler[open] .stones-arrow {
transform: rotate(180deg);
}
.stones-content {
padding: 0 12px 12px 12px;
display: flex;
flex-direction: column;
gap: 8px;
animation: stonesFadeIn 0.3s ease;
}
@keyframes stonesFadeIn {
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: translateY(0); }
}
.stones-category {
background: rgba(255,255,255,0.7);
border-radius: 6px;
overflow: hidden;
border: 1px solid rgba(156,39,176,0.15);
}
.stones-category-title {
padding: 6px 10px;
background: linear-gradient(135deg, rgba(156,39,176,0.1), rgba(103,58,183,0.08));
font-size: 10px;
font-weight: 800;
color: #6a1b9a;
border-bottom: 1px solid rgba(156,39,176,0.15);
text-transform: uppercase;
letter-spacing: 0.3px;
}
.stone-item {
padding: 6px 10px;
border-bottom: 1px dashed rgba(0,0,0,0.05);
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
font-size: 10px;
}
.stone-item:last-child {
border-bottom: none;
}
.stone-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 1px;
}
.stone-name {
font-weight: 700;
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 10px;
}
.stone-id {
font-family: 'Courier New', monospace;
color: var(--text-muted);
font-size: 9px;
font-weight: 600;
}
.stone-meta {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 1px;
flex-shrink: 0;
}
.stone-slot {
font-size: 9px;
color: var(--text-muted);
font-weight: 600;
}
.stone-polish {
font-size: 9px;
color: #f39c12;
font-weight: 800;
}
.card-footer {
padding: 8px 12px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
background: rgba(255,255,255,0.7);
}
.time-block {
font-size: 10px;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 4px;
font-weight: 600;
}
.time-block.urgent { color: #e74c3c; animation: pulseText 1s infinite; }
@keyframes pulseText { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
.card-actions { display: flex; gap: 6px; flex: 1; justify-content: flex-end; }
.btn-bid {
flex: 1;
padding: 8px 12px;
border-radius: 8px;
font-size: 11px;
font-weight: 700;
background: linear-gradient(135deg, #f39c12, #e67e22);
color: #fff;
border: none;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 3px 10px rgba(243,156,18,0.3);
}
.btn-bid:hover {
transform: translateY(-2px);
box-shadow: 0 5px 16px rgba(243,156,18,0.5);
}
.btn-buy {
flex: 1;
padding: 8px 12px;
border-radius: 8px;
font-size: 11px;
font-weight: 700;
background: linear-gradient(135deg, #28a745, #20c997);
color: #fff;
border: none;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 3px 10px rgba(40,167,69,0.3);
}
.btn-buy:hover {
transform: translateY(-2px);
box-shadow: 0 5px 16px rgba(40,167,69,0.5);
}
.btn-buy.disabled {
background: linear-gradient(135deg, #95a5a6, #7f8c8d);
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.btn-cancel-lot {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-cancel-lot:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(231,76,60,0.5);
}
.btn-cancel-lot:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    box-shadow: none;
}
.auction-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; }
.pagination-btn { padding: 8px 14px; background: rgba(255,255,255,0.9); border: 2px solid rgba(98,32,180,0.2); border-radius: var(--radius); color: var(--text); font-weight: 700; text-decoration: none; font-size: 13px; }
.pagination-btn:hover, .pagination-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-color: var(--primary); color: #fff; }
.pagination-ellipsis { padding: 8px 6px; color: var(--text-muted); }
.auction-empty { text-align: center; padding: 60px 20px; background: rgba(255,255,255,0.6); border-radius: var(--radius-lg); border: 2px dashed rgba(98,32,180,0.2); }
.auction-empty i { font-size: 48px; color: rgba(98,32,180,0.3); margin-bottom: 12px; }
.auction-empty h3 { font-size: 20px; color: var(--text); margin: 0 0 6px 0; }
.auction-empty p { color: var(--text-muted); margin: 0; font-size: 13px; }
.buy-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999; align-items: center; justify-content: center; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); }
.buy-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.buy-modal-content { position: relative; background: #ffffff; border-radius: 16px; padding: 0; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.5); z-index: 100000; animation: modalSlideIn 0.3s ease; color: #2c3e50; }
@keyframes modalSlideIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.buy-modal-header { padding: 18px 22px; border-bottom: 2px solid rgba(98,32,180,0.1); display: flex; justify-content: space-between; align-items: center; }
.buy-modal-header h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.buy-modal-close { background: none; border: none; font-size: 22px; color: #7f8c8d; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; }
.buy-modal-body { padding: 20px; }
.character-select-block { margin-bottom: 16px; }
.character-select-block label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.buyer-select { width: 100%; padding: 10px 12px; background: #f8f9fa; border: 2px solid rgba(98,32,180,0.2); border-radius: 8px; font-size: 13px; }
.buyer-warning { margin-top: 8px; padding: 8px 12px; background: linear-gradient(135deg, rgba(231,76,60,0.1), rgba(192,57,43,0.08)); border-left: 3px solid #e74c3c; border-radius: 6px; font-size: 11px; color: #c0392b; }
.buy-info { background: rgba(98,32,180,0.05); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.buy-item-name { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.buy-price-row, .buy-total-row, .buy-commission-row, .buy-seller-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-top: 1px solid rgba(0,0,0,0.05); }
.buy-price-row strong, .buy-total-row strong { color: #6220b4; font-size: 15px; }
.buy-commission-row span:last-child { color: #e74c3c; }
.buy-seller-row strong { color: #28a745; font-size: 15px; }
.bid-input-field { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; margin-top: 5px; }
.buy-warning { display: flex; gap: 10px; padding: 12px; background: linear-gradient(135deg, rgba(231,76,60,0.1), rgba(192,57,43,0.08)); border-left: 4px solid #e74c3c; border-radius: 8px; }
.buy-warning i { font-size: 20px; color: #e74c3c; }
.buy-warning strong { display: block; color: #c0392b; margin-bottom: 2px; font-size: 12px; }
.buy-warning p { margin: 0; font-size: 12px; color: #c0392b; }
.buy-modal-footer { padding: 16px 22px; border-top: 2px solid rgba(98,32,180,0.1); display: flex; gap: 10px; justify-content: flex-end; }
.btn-cancel, .btn-confirm { padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 700; border: none; cursor: pointer; }
.btn-cancel { background: rgba(0,0,0,0.06); color: #2c3e50; }
.btn-confirm { background: linear-gradient(135deg, #28a745, #20c997); color: #fff; box-shadow: 0 4px 12px rgba(40,167,69,0.3); }
.btn-confirm:disabled { opacity: 0.6; cursor: not-allowed; }
.notification-area { position: fixed; top: 20px; right: 20px; z-index: 999999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.notification { padding: 14px 20px; border-radius: 10px; color: #fff; font-weight: 700; box-shadow: 0 4px 20px rgba(0,0,0,0.3); transform: translateX(400px); opacity: 0; transition: all 0.3s ease; max-width: 380px; pointer-events: auto; font-size: 13px; }
.notification.show { transform: translateX(0); opacity: 1; }
.notification-success { background: linear-gradient(135deg, #28a745, #20c997); }
.notification-error { background: linear-gradient(135deg, #e74c3c, #c0392b); }
@media (max-width: 768px) {
.auction-title { font-size: 24px; }
.auction-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.auction-stats { flex-direction: column; align-items: center; }
.buy-modal-content { width: 95%; }
.auction-nav-item span:not(.nav-badge) { display: none; }
.filters-form-inline {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
}