/* ========== CSS Reset ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #00b0f0;
    --primary-dark: #0095cc;
    --primary-light: #e6f7ff;
    --accent: #ff6b00;
    --accent-dark: #e55a00;
    --text-main: #333;
    --text-sub: #666;
    --text-light: #999;
    --bg-page: #f5f5f5;
    --bg-white: #fff;
    --border: #e8e8e8;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #f5222d;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --max-width: 1200px;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-page);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* ========== Layout ========== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* ========== Header ========== */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 22px;
}

.logo-icon {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.user-trigger:hover {
    background: var(--primary-light);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.user-name {
    font-size: 14px;
    color: var(--text-main);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caret {
    color: var(--text-light);
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 160px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 6px 0;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-main);
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: var(--radius);
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: var(--bg-white);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.text-center {
    text-align: center;
    margin-top: 24px;
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, #00b0f0 0%, #4cc9f0 100%);
    color: #fff;
    padding: 60px 0 48px;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.search-box {
    max-width: 560px;
    margin: 0 auto 36px;
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    color: var(--text-main);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    border-radius: 22px;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.search-btn:hover {
    background: var(--accent-dark);
}

.search-result {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    margin-top: 4px;
    padding: 6px 0;
    max-height: 320px;
    overflow-y: auto;
    color: var(--text-main);
    text-align: left;
}

.search-result-item {
    padding: 10px 16px;
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--primary-light);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    color: #fff;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.feature-item h3 {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 600;
}

.feature-item p {
    font-size: 13px;
    opacity: 0.9;
}

/* ========== Sections ========== */
.section {
    padding: 48px 0;
}

.section-gray {
    background: var(--bg-page);
}

.section-blue {
    background: var(--primary);
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.section-blue .section-title {
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-sub);
    margin-bottom: 32px;
    font-size: 14px;
}

.section-blue .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.block-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-main);
}

/* ========== Steps ========== */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
}

.step-item {
    background: #fff;
    padding: 24px 16px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 12px;
    font-size: 16px;
}

.step-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.step-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.step-item p {
    color: var(--text-sub);
    font-size: 13px;
}

/* ========== Country Grid ========== */
.country-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.country-grid-lg {
    grid-template-columns: repeat(5, 1fr);
}

.country-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    color: var(--text-main);
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: var(--text-main);
}

.country-flag {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #e0f0ff, #f5f5f5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flag-placeholder {
    font-size: 48px;
    color: var(--primary);
    font-weight: 700;
}

.flag-lg {
    font-size: 72px;
}

.country-info {
    padding: 12px 14px 14px;
}

.country-name {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.country-dial {
    color: var(--text-sub);
    font-size: 13px;
    margin-bottom: 4px;
}

.country-recharge {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 8px;
}

.country-recharge strong {
    color: var(--accent);
}

.operator-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.operator-tag {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ========== Pay Methods ========== */
.pay-methods {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.pay-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 24px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 140px;
    transition: transform 0.2s;
}

.pay-method:hover {
    transform: translateY(-4px);
}

.pay-icon {
    font-size: 40px;
}

/* ========== Stats ========== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 16px;
}

.stat-num {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-item p {
    opacity: 0.9;
    font-size: 14px;
}

/* ========== FAQ List ========== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
    user-select: none;
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 16px;
}

.faq-toggle {
    font-size: 18px;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    color: var(--text-sub);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 16px;
}

/* ========== Breadcrumb ========== */
.breadcrumb-bar {
    background: #fff;
    padding: 14px 0;
    color: var(--text-sub);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-bar a {
    color: var(--text-sub);
}

.breadcrumb-bar a:hover {
    color: var(--primary);
}

.breadcrumb-bar .sep {
    margin: 0 8px;
    color: var(--text-light);
}

/* ========== Country Detail ========== */
.country-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.country-header-flag {
    width: 96px;
    height: 96px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.country-header-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-header-title {
    font-size: 24px;
    margin-bottom: 4px;
}

.country-header-sub {
    color: var(--text-sub);
    font-size: 14px;
}

.country-search {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 280px;
}

.country-search .form-input {
    flex: 1;
}

/* ========== Operator Grid ========== */
.operator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.operator-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    color: var(--text-main);
}

.operator-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: var(--text-main);
}

.operator-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--primary-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.operator-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
}

.operator-name {
    font-size: 16px;
    margin-bottom: 4px;
}

.operator-dial {
    color: var(--text-sub);
    font-size: 13px;
    margin-bottom: 8px;
}

.operator-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.tag {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ========== Topup Page ========== */
.topup-section {
    padding: 32px 0;
}

.topup-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.topup-main,
.topup-aside {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.operator-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.operator-logo-lg {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--primary-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.operator-logo-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.operator-title {
    font-size: 22px;
    margin-bottom: 4px;
}

.operator-meta {
    color: var(--text-sub);
    font-size: 13px;
}

.topup-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.topup-tab {
    padding: 8px 20px;
    border-radius: var(--radius);
    background: var(--bg-page);
    color: var(--text-sub);
    font-size: 14px;
    transition: all 0.2s;
}

.topup-tab.active {
    background: var(--primary);
    color: #fff;
}

.topup-tab:hover:not(.active) {
    background: var(--primary-light);
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-main);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 176, 240, 0.15);
}

.phone-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.phone-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 176, 240, 0.15);
}

.phone-prefix {
    padding: 10px 14px;
    background: var(--bg-page);
    color: var(--text-sub);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.phone-input-group .form-input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.phone-input-group .form-input:focus {
    box-shadow: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.product-card {
    display: block;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    position: relative;
}

.product-card:hover {
    border-color: var(--primary);
}

.product-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(0, 176, 240, 0.2);
}

.product-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-face {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.product-face small {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-sub);
}

.product-price {
    color: var(--accent);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.product-name {
    color: var(--text-sub);
    font-size: 12px;
    word-break: break-all;
}

.pay-select {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pay-option {
    cursor: pointer;
}

.pay-option input {
    display: none;
}

.pay-label {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-sub);
    transition: all 0.2s;
}

.pay-option input:checked + .pay-label {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.form-actions {
    margin-top: 24px;
}

.batch-entry {
    margin: 16px 0;
    padding: 12px 16px;
    background: #fff8e6;
    border-radius: var(--radius);
    border: 1px dashed var(--accent);
}

.batch-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}

.notice-box {
    background: #fafafa;
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}

.notice-box h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.notice-box ul {
    padding-left: 20px;
    list-style: disc;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.8;
}

.notice-box li {
    margin-bottom: 4px;
}

/* Aside */
.topup-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aside-block {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.aside-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.aside-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.aside-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aside-list li a {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.5;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}

.aside-list li a:hover {
    color: var(--primary);
}

.aside-list.faq-mini li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.aside-list.faq-mini li:last-child {
    border-bottom: none;
}

.aside-list.faq-mini strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 4px;
    font-size: 13px;
}

.aside-list.faq-mini p {
    color: var(--text-sub);
    font-size: 12px;
}

/* ========== Order Detail ========== */
.order-detail-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.order-detail-header h2 {
    font-size: 20px;
}

.order-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.status-0 {
    background: #fff8e6;
    color: var(--warning);
}

.status-1 {
    background: #e6f7ff;
    color: var(--primary);
}

.status-2 {
    background: #fff2e8;
    color: var(--accent);
}

.status-3 {
    background: #f6ffed;
    color: var(--success);
}

.status-4 {
    background: #fff1f0;
    color: var(--danger);
}

.status-5 {
    background: #f0f0f0;
    color: var(--text-sub);
}

.order-detail-list {
    margin-bottom: 24px;
}

.order-detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.order-detail-row:last-child {
    border-bottom: none;
}

.order-detail-row .label {
    width: 120px;
    color: var(--text-sub);
    flex-shrink: 0;
}

.order-detail-row .value {
    flex: 1;
    color: var(--text-main);
}

.order-detail-row .value.price {
    color: var(--accent);
    font-weight: 600;
    font-size: 18px;
}

.order-detail-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ========== Auth Pages ========== */
.auth-section {
    padding: 40px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-hover);
}

.auth-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-sub);
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-foot {
    text-align: center;
    margin-top: 16px;
    color: var(--text-sub);
    font-size: 14px;
}

.demo-account {
    margin-top: 24px;
    padding: 12px;
    background: var(--bg-page);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.8;
}

.demo-account p {
    color: var(--text-sub);
}

/* ========== User Center ========== */
.user-center {
    padding: 32px 0;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary), #4cc9f0);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.user-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-circle {
    font-size: 32px;
    color: #fff;
    font-weight: 700;
}

.user-nickname {
    font-size: 22px;
    margin-bottom: 4px;
}

.user-phone {
    opacity: 0.9;
    margin-bottom: 8px;
}

.user-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    opacity: 0.95;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-box .stat-num {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 4px;
}

.stat-box p {
    color: var(--text-sub);
    font-size: 14px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.quick-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--text-main);
    transition: transform 0.2s;
}

.quick-item:hover {
    transform: translateY(-4px);
    color: var(--primary);
}

.quick-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.logout-row {
    text-align: center;
    margin-top: 24px;
}

/* ========== Orders List ========== */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.order-no {
    color: var(--text-sub);
    font-size: 13px;
}

.order-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
    margin-bottom: 12px;
}

.order-info-row {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.order-info-row .label {
    color: var(--text-light);
    margin-bottom: 2px;
}

.order-info-row .value {
    color: var(--text-main);
}

.order-info-row .value.price {
    color: var(--accent);
    font-weight: 600;
    font-size: 16px;
}

.order-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ========== Coupons ========== */
.coupon-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.coupon-card {
    display: flex;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.coupon-card::before,
.coupon-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-page);
    border-radius: 50%;
    left: 120px;
    transform: translateX(-50%);
}

.coupon-card::before {
    top: -8px;
}

.coupon-card::after {
    bottom: -8px;
}

.coupon-card.status-1,
.coupon-card.status-2 {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.coupon-left {
    width: 120px;
    background: linear-gradient(135deg, var(--accent), #ff8533);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    flex-shrink: 0;
}

.coupon-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.coupon-type {
    font-size: 12px;
    opacity: 0.9;
}

.coupon-right {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coupon-name {
    font-size: 15px;
    margin-bottom: 4px;
}

.coupon-cond {
    color: var(--text-sub);
    font-size: 13px;
}

.coupon-time {
    color: var(--text-light);
    font-size: 12px;
}

.coupon-status {
    margin-top: auto;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
}

/* ========== Points ========== */
.points-summary {
    background: linear-gradient(135deg, var(--primary), #4cc9f0);
    color: #fff;
    padding: 32px;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.points-num {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 4px;
}

.points-summary p {
    opacity: 0.95;
    font-size: 14px;
}

.points-tip {
    font-size: 13px !important;
    opacity: 0.85 !important;
    margin-top: 4px !important;
}

.points-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.points-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.points-icon {
    font-size: 18px;
    font-weight: 700;
    width: 56px;
    text-align: center;
}

.points-icon.plus {
    color: var(--success);
}

.points-icon.minus {
    color: var(--danger);
}

.points-info {
    flex: 1;
}

.points-desc {
    color: var(--text-main);
    margin-bottom: 2px;
}

.points-meta {
    color: var(--text-light);
    font-size: 12px;
}

/* ========== Article ========== */
.article-section {
    padding: 32px 0;
}

.article-detail {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 32px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.article-detail-title {
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-detail-meta {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
}

.article-cover-lg {
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-detail-content {
    line-height: 1.8;
    color: var(--text-main);
    font-size: 15px;
}

.article-detail-content p {
    margin-bottom: 12px;
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 12px 0;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.article-item {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    color: var(--text-main);
}

.article-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: var(--text-main);
}

.article-cover {
    width: 100%;
    height: 140px;
    background: var(--bg-page);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    font-size: 40px;
    color: var(--text-light);
}

.article-content {
    padding: 12px 16px 16px;
}

.article-content h3 {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.article-summary {
    color: var(--text-sub);
    font-size: 13px;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-meta {
    color: var(--text-light);
    font-size: 12px;
}

.related-articles {
    margin-top: 32px;
}

/* ========== Filter Tabs ========== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.filter-tab {
    padding: 6px 16px;
    border-radius: 16px;
    background: #fff;
    color: var(--text-sub);
    font-size: 13px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.filter-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== Pagination ========== */
.pagination {
    text-align: center;
    margin-top: 24px;
}

.pagination ul {
    display: inline-flex;
    gap: 4px;
    list-style: none;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 30px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-sub);
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}

.pagination li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination li.active span,
.pagination li.active a {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination li.disabled span {
    color: var(--text-light);
    background: var(--bg-page);
    cursor: not-allowed;
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-sub);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 16px;
}

/* ========== Error Page ========== */
.error-page {
    text-align: center;
    padding: 80px 16px;
}

.error-code {
    font-size: 96px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
}

.error-title {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.error-desc {
    color: var(--text-sub);
    margin-bottom: 24px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Footer ========== */
.footer {
    background: #2a2a2a;
    color: #ccc;
    padding: 40px 0 16px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-col p {
    color: #999;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.7;
}

.footer-col a {
    display: block;
    color: #999;
    font-size: 13px;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #3a3a3a;
    padding-top: 16px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.footer-bottom p {
    color: #888;
    margin-bottom: 4px;
}

/* ========== Toast ========== */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: auto;
    max-width: 90%;
}

.toast {
    padding: 10px 20px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: toastIn 0.25s ease;
    background: #333;
    pointer-events: auto;
    max-width: 100%;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .country-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .country-grid-lg {
        grid-template-columns: repeat(4, 1fr);
    }
    .operator-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .topup-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 8px 16px 16px;
        box-shadow: var(--shadow-hover);
        gap: 0;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-item {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-inner {
        position: relative;
    }

    .hero {
        padding: 40px 0 32px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 12px;
    }

    .search-input {
        text-align: center;
        padding: 8px;
    }

    .search-btn {
        width: 100%;
        border-radius: var(--radius);
    }

    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-item:nth-child(5) {
        grid-column: span 2;
    }

    .country-grid,
    .country-grid-lg {
        grid-template-columns: repeat(2, 1fr);
    }

    .operator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-num {
        font-size: 28px;
    }

    .pay-methods {
        gap: 12px;
    }

    .pay-method {
        padding: 16px 20px;
        min-width: 100px;
    }

    .country-header,
    .operator-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .country-header-flag {
        margin: 0 auto;
    }

    .country-search {
        margin-left: 0;
        width: 100%;
        min-width: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-card-body {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid,
    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .coupon-list {
        grid-template-columns: 1fr;
    }

    .coupon-card::before,
    .coupon-card::after {
        left: 100px;
    }

    .article-list {
        grid-template-columns: 1fr;
    }

    .article-detail {
        padding: 16px;
    }

    .article-detail-title {
        font-size: 20px;
    }

    .order-detail-row .label {
        width: 100px;
    }

    .order-detail-actions {
        justify-content: stretch;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .footer-col a {
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 18px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-card-body {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px 20px;
    }
}
