/* ================================================================
   style.css — FreeNumber Global Design System
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Theme Variables - Dark Mode (Default) */
    --bg: #05070a;
    --bg2: #0b0e14;
    --bg3: #111520;
    --border: rgba(255, 255, 255, 0.05);
    --border2: rgba(255, 255, 255, 0.09);
    --text: #f3f4f6;
    --text2: #9ca3af;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-gradient: linear-gradient(135deg, #4f46e5, #3b82f6);
    --green: #10b981;
    --orange: #f59e0b;
    --purple: #8b5cf6;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(11, 14, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    
    /* Layout */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --nav-h: 72px;
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg2: #ffffff;
    --bg3: #f1f5f9;
    --border: rgba(0, 0, 0, 0.06);
    --border2: rgba(0, 0, 0, 0.1);
    --text: #0f172a;
    --text2: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Typo */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
}

.number, .otp-code, .otp-message, input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.7px;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--text);
}

/* Navigation Tabs */
.tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: var(--bg3);
    border-radius: 20px;
    flex: 1;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--text2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: var(--text2);
    transition: all 0.2s ease;
    height: 40px;
}

.nav-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Language Selection Menu */
.lang-wrap {
    position: relative;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    min-width: 180px;
    z-index: 9999;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.lang-menu.open {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.lang-opt {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text2);
    transition: background-color 0.15s, color 0.15s;
}

.lang-opt:hover {
    background: var(--bg3);
    color: var(--text);
}

.lang-opt.active {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent);
    font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 20px 120px;
}

/* ===== HERO SECTION ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(9, 11, 16, 0.9) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    padding: 40px 24px;
}

@media (min-width: 992px) {
    .hero {
        grid-template-columns: 1.2fr 0.8fr;
        padding: 56px 48px;
    }
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.hero-left h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -1.2px;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--text);
}

.hero-left h1 span {
    background: linear-gradient(135deg, #00f2fe 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-left p {
    font-size: clamp(14px, 2.5vw, 16px);
    color: var(--text2);
    margin-bottom: 24px;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

/* Backing globe graphic */
.hero-globe-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.7;
}

.globe-svg {
    width: 100%;
    height: 100%;
    max-width: 320px;
    transform-origin: center;
}

.ring {
    transform-origin: 200px 200px;
}

.ring-1 {
    animation: spinClockwise 30s linear infinite;
}

.ring-2 {
    animation: spinCounterClockwise 40s linear infinite;
}

.ring-3 {
    animation: spinClockwise 60s linear infinite;
}

.nodes-group-1 {
    transform-origin: 200px 200px;
    animation: spinClockwise 20s linear infinite;
}

.nodes-group-2 {
    transform-origin: 200px 200px;
    animation: spinCounterClockwise 25s linear infinite;
}

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Floating overlay cards */
.hero-mock-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    z-index: 1;
}

.hero-mock-card {
    background: rgba(11, 14, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: floatCard 6s ease-in-out infinite;
}

.hero-mock-card:nth-child(2) {
    animation-delay: -3s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hmc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hmc-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text2);
}

.hmc-icon {
    font-size: 14px;
}

.hmc-time {
    color: var(--accent);
}

.hmc-number {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.hmc-msg {
    font-size: 11px;
    color: var(--text2);
}

/* ===== INTERACTIVE CONTROLS (SEARCH & LIVE BADGE) ===== */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--text2);
    stroke-width: 2;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 8px var(--green);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

/* ===== NEW STATS & WHY-USE LAYOUT ===== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card-new {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--card-shadow);
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon-wrapper.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.stat-icon-wrapper.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.stat-icon-wrapper.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange);
}

.stat-content-new {
    display: flex;
    flex-direction: column;
}

.stat-val-new {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

.stat-label-new {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
}

.stat-sub-new {
    font-size: 11px;
    color: var(--text2);
    margin-top: 1px;
}

/* Why Use Card */
.why-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.why-card-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 12px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    z-index: 1;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
}

.why-check {
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
}

.why-shield-icon {
    position: absolute;
    right: -16px;
    bottom: -16px;
    font-size: 72px;
    opacity: 0.05;
    pointer-events: none;
}

/* ===== COUNTRY GRID SECTION ===== */
.section-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 18px;
    padding-left: 10px;
    border-left: 3px solid var(--purple);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.country-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.country-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.country-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.country-card:hover::before {
    opacity: 0.04;
}

.cc-flag {
    font-size: 40px;
    margin-bottom: 14px;
    display: block;
    line-height: 1;
}

.cc-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.cc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.cc-count {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 100px;
}

.cc-otp-badge {
    font-size: 11px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.08);
    color: var(--green);
    padding: 3px 8px;
    border-radius: 100px;
    display: none;
    align-items: center;
    gap: 3px;
}

.cc-otp-badge.visible {
    display: inline-flex;
}

.cc-arrow {
    margin-left: auto;
    font-size: 18px;
    color: var(--text2);
    transition: transform 0.2s;
}

.country-card:hover .cc-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* ===== PAGINATION CONTROLS ===== */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    width: 100%;
}

.show-more-btn {
    padding: 12px 28px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-more-btn:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.04);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-num-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--bg2);
    border-radius: 8px;
    color: var(--text2);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-num-btn:hover {
    border-color: var(--border2);
    color: var(--text);
}

.page-num-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.page-num-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== API DOCUMENTATION VIEW ===== */
.api-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.api-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--card-shadow);
}

.api-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    color: var(--accent);
}

.api-card p {
    color: var(--text2);
    margin-bottom: 16px;
    line-height: 1.6;
}

.api-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.api-meta-table th, .api-meta-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.api-meta-table th {
    background: var(--bg3);
    font-family: var(--font-heading);
    font-weight: 700;
}

.api-endpoint-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
}

.api-method-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    margin-right: 8px;
    color: white;
}

.api-method-badge.get {
    background: #2563eb;
}

.api-path {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.api-desc {
    margin: 12px 0;
    font-size: 13px;
    color: var(--text2);
}

/* Beautiful code block style */
.code-block-container {
    background: #090b10;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 12px;
    position: relative;
    overflow-x: auto;
}

/* Mock terminal buttons */
.code-block-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 12px;
    width: 36px;
    height: 10px;
    background: radial-gradient(circle, #ff5f56 0%, #ff5f56 25%, #ffbd2e 26%, #ffbd2e 50%, #27c93f 51%, #27c93f 100%);
    background-size: 36px 10px;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.code-block-container pre {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
}

.code-block-container code {
    color: #e2e8f0;
}

.code-keyword { color: #f43f5e; }
.code-string { color: #10b981; }
.code-function { color: #3b82f6; }
.code-comment { color: #64748b; }

/* ===== GENERAL LAYOUT STUFF ===== */
/* Back button and title styles */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    background: var(--bg2);
    color: var(--text2);
    transition: all 0.2s ease;
}

.back-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.04);
}

.country-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    box-shadow: var(--card-shadow);
}

.cdh-flag {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.cdh-info {
    flex: 1;
    min-width: 200px;
}

.cdh-info h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.cdh-info p {
    font-size: 13px;
    color: var(--text2);
}

.cdh-search {
    position: relative;
    width: 100%;
}

.cdh-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text2);
    stroke-width: 2;
    pointer-events: none;
}

.cdh-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
}

@media (min-width: 680px) {
    .cdh-search {
        width: auto;
        min-width: 240px;
        margin-left: auto;
    }
}

.numbers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.number-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
}

.number-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.number-val {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    word-break: break-all;
}

.number-actions {
    display: flex;
    gap: 8px;
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    touch-action: manipulation;
}

.btn-copy {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent);
}

.btn-copy:hover {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-otp {
    background: rgba(16, 185, 129, 0.08);
    color: var(--green);
}

.btn-otp:hover {
    background: var(--green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* ===== OTP FEED VIEW ===== */
.otp-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.otp-select {
    padding: 11px 14px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.otp-search-wrap {
    flex: 2;
    min-width: 180px;
    position: relative;
}

.otp-search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text2);
    stroke-width: 2;
    pointer-events: none;
}

.refresh-btn {
    padding: 10px 16px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--bg2);
    color: var(--text2);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
}

.refresh-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.04);
}

.refresh-btn.spinning svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.otp-grid {
    display: grid;
    gap: 12px;
}

.otp-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    contain: layout style;
    box-shadow: var(--card-shadow);
}

.otp-card.is-new {
    animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.otp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.otp-country-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.otp-flag {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.otp-country-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.otp-sender {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.otp-time {
    font-size: 12px;
    color: var(--text2);
    white-space: nowrap;
    flex-shrink: 0;
}

.otp-code-block {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
    border: 1px dashed rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.otp-code-block:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--accent);
    transform: scale(1.01);
}

.otp-code-block:active {
    transform: scale(0.99);
}

.otp-code-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--accent);
    text-transform: uppercase;
}

.otp-code-val {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3px;
    margin-top: 3px;
}

.otp-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.otp-num-label {
    font-size: 12px;
    color: var(--text2);
    flex-shrink: 0;
}

.otp-num-val {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    word-break: break-all;
    text-align: right;
}

.otp-msg {
    background: var(--bg3);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text2);
    word-break: break-word;
    line-height: 1.5;
    max-height: 90px;
    overflow-y: auto;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    border: 1px solid var(--border);
}

.otp-copy-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text2);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.otp-copy-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 500;
    overflow-y: auto;
    padding: 16px;
}

.modal.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-inner {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 680px;
    width: 100%;
    margin: 40px auto;
    box-shadow: var(--card-shadow);
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--accent);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-number-banner {
    background: var(--accent-gradient);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.modal-number-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.modal-number-val {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    word-break: break-all;
}

.modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}

.modal-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
}

.modal-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

.modal-refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    background: var(--bg3);
    color: var(--text2);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-refresh-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg2);
}

.modal-refresh-btn.spinning svg {
    animation: spin 0.8s linear infinite;
}

.modal-otp-count {
    font-size: 12px;
    color: var(--text2);
    font-weight: 500;
}

/* ===== STANDARD CONTENT CARD ===== */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}

.content-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
}

.content-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.content-card p {
    color: var(--text2);
    margin-bottom: 16px;
    line-height: 1.7;
}

.content-card ul, .content-card ol {
    margin-left: 20px;
    margin-bottom: 16px;
    color: var(--text2);
}

.content-card li {
    margin-bottom: 8px;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-question {
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 18px;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease-out;
    color: var(--text2);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 200px;
}

/* Contact Cards Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.contact-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: transform 0.2s;
}

.contact-card:hover {
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text2);
    letter-spacing: 0.5px;
}

.input-field {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg3);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.25s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

textarea.input-field {
    min-height: 120px;
    resize: vertical;
}

/* ===== ADMIN DASHBOARD LAYOUT ===== */
.admin-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 16px;
}

.admin-header {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 28px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.admin-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.admin-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    color: var(--accent);
}

.admin-tab-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    padding-bottom: 8px;
}

.admin-tab {
    padding: 10px 18px;
    background: transparent;
    color: var(--text2);
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tab.active {
    background: var(--accent);
    color: #ffffff;
}

.file-upload-area {
    border: 2px dashed var(--border2);
    background: var(--bg3);
    border-radius: var(--radius);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-area:hover, .file-upload-area.dragover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.04);
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.number-list-wrap {
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg3);
    border-radius: var(--radius-sm);
    padding: 8px;
    border: 1px solid var(--border);
}

.number-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg2);
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid var(--border);
}

.number-item-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
}

/* Success & Error boxes */
.msg-box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-top: 14px;
    display: none;
    animation: fadeIn 0.2s ease;
}

.msg-box.success {
    color: var(--green);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
}

.msg-box.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--text2);
    background: var(--bg2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text);
    margin-bottom: 4px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text2);
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    top: 80px;
    right: 16px;
    left: 16px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-left: 4px solid var(--green);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--card-shadow);
    z-index: 1000;
    display: none;
    max-width: 420px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .notification {
        top: 24px;
        right: 24px;
        left: auto;
        min-width: 260px;
        max-width: 360px;
    }
}

.notification.show {
    display: block;
    animation: notifIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes notifIn {
    from { opacity: 0; transform: translateX(24px) translateY(8px); }
    to { opacity: 1; transform: translateX(0) translateY(0); }
}

/* ===== TELEGRAM FLOAT BUTTON ===== */
.tg-float {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 300;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #229ED9, #1783b9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tg-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 24px rgba(34, 158, 217, 0.6);
}

.tg-float:active {
    transform: scale(0.95);
}

.tg-float svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 48px 16px 28px;
    transition: background-color 0.3s, border-color 0.3s;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.footer-col p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
}

.footer-col a {
    font-size: 13px;
    color: var(--text2);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text2);
}

/* ===== GLOBAL ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (min-width: 768px) {
    :root {
        --nav-h: 72px;
        --radius: 20px;
    }
    nav {
        padding: 0 24px;
    }
    .logo {
        font-size: 24px;
    }
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .nav-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    main {
        padding: 40px 24px 120px;
    }
    .stats-row {
        gap: 20px;
        margin-bottom: 40px;
    }
    .stat-pill {
        padding: 24px;
    }
    .search-bar {
        margin-bottom: 40px;
    }
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 16px;
    }
    .numbers-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
    }
    .footer-inner {
        grid-template-columns: repeat(4, 1fr);
    }
    .tg-float {
        width: 58px;
        height: 58px;
        bottom: 32px;
        right: 32px;
    }
    .tg-float svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
    }
    .logo {
        order: 1;
    }
    .nav-right {
        order: 2;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .tabs {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 12px 0 4px 0;
    }
    .stats-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .live-badge {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .countries-grid {
        grid-template-columns: 1fr;
    }
}

/* View section hiding/showing */
.view-section {
    display: none !important;
}
.view-section.active {
    display: block !important;
}

/* Stats row styles for OTP and FAQ pages */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-pill {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 13px;
    color: var(--text2);
    font-weight: 600;
    margin-top: 4px;
}
