@import url('root.css');

/* --- Rules Section (Full List) --- */
.rules-container {
    width: 100%;
    max-width: 1100px;
}

.rules-header {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 2px;
    padding-left: 10px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
}

.rule-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: 0.3s;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.rule-item i {
    font-size: 20px;
    color: var(--primary);
    margin-top: 2px;
}

.rule-item span {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.rule-item b {
    color: #fff;
}

/* -- Server Signal -- */
.meta-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 20px auto;
}

.hud-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* Status Indicator Strip */
.hud-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: var(--accent, var(--online));
    box-shadow: 0 0 15px var(--accent, var(--online));
    border-radius: 0 4px 4px 0;
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-box {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Icon Colors */
.clr-green {
    color: var(--online);
    filter: drop-shadow(0 0 8px var(--online));
}

.clr-yellow {
    color: var(--maintenance);
    filter: drop-shadow(0 0 8px var(--maintenance));
}

.clr-red {
    color: var(--offline);
    filter: drop-shadow(0 0 8px var(--offline));
}

.hud-details h4 {
    font-size: 9px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 2px 0;
}

.hud-details p {
    font-size: 13px;
    font-weight: 900;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
}

.hud-right {
    text-align: right;
}

.speed-val {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    display: block;
    line-height: 1;
}

.speed-label {
    font-size: 8px;
    color: #666;
    text-transform: uppercase;
    font-weight: 800;
}

/* Region Badge */
.region-badge {
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 900;
    color: var(--accent, var(--online));
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
}

/* Dynamic State Colors */
.hud-card.online {
    --accent: var(--online);
}

.hud-card.maintenance {
    --accent: var(--maintenance);
}

.hud-card.offline {
    --accent: var(--offline);
}


/* --- BOOYAH WELCOME STYLES (PERFECT CENTER) --- */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Full Viewport Width */
    height: 100vh; /* Full Viewport Height */
    background: rgba(0, 0, 0, 0.85); /* Backdrop blur ke liye shadow */
    display: none; /* JS isay 'flex' karega */
    align-items: center; /* Vertical Center */
    justify-content: center; /* Horizontal Center */
    z-index: 100000;
    font-family: var(--name-font);
    padding: 20px; /* Ye sides se gap banaye rakhega (Mobile par zaroori hai) */
    box-sizing: border-box;
}

.welcome-card {
    background: #1a1a1a;
    color: #e8eaed;
    width: 100%; /* Default width */
    max-width: 450px; /* Zyada phaila hua na lage (Desktop fix) */
    max-height: 90vh; /* Bohat lambi screen par bhi bahar nahi jayega */
    border-radius: 12px; /* Zyada rounded corners (Premium Look) */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    overflow: hidden;
    /* Smooth Entrance */
    animation: googleStylePop 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

@keyframes googleStylePop {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.card-header h1 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    letter-spacing: 1px;
}

.card-body {
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ffcc2d #1a1a1a;
}

.card-body h2 { 
    font-size: 16px; 
    margin-bottom: 15px; 
    color: #fff; 
}

.card-body p { 
    font-size: 12px; 
    line-height: 1.5; 
    color: #bdc1c6; 
    margin-bottom: 12px; 
}

.card-footer {
    border-top: 1px dashed #333;
    padding-top: 20px;
}

.agreement-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

/* Checkbox Alignment Fix */
.checkbox-container {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

.checkbox-container input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    z-index: 2;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border: 2px solid #ffcc2d;
    border-radius: 6px;
    background: transparent;
    transition: 0.2s;
}

.checkbox-container input:checked ~ .checkmark {
    background: #ffcc2d;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.agreement-text {
    font-size: 12px;
    color: #9aa0a6;
    line-height: 1.4;
}

.continue-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px; /* Pill shape like Google */
    border: none;
    background: #333;
    color: #666;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.continue-btn.active {
    background: var(--primary);
    color: #000;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 204, 45, 0.2);
}
