/* ===== Base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #f4f6f9;
    color: #1f2937;
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

/* ===== Layout ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 64px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.18);
}

.logo {
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    min-width: 0;
}

.user-info a {
    color: #fecaca;
    text-decoration: none;
    font-weight: 700;
}

.user-info a:hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
}

.layout {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 64px);
}

.sidebar {
    position: sticky;
    top: 64px;
    width: 245px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: #1f2937;
    padding: 14px 10px;
    flex-shrink: 0;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-bottom: 5px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar a:hover {
    background: #374151;
    color: #fff;
    transform: translateX(-2px);
}

.sidebar .deposit-btn {
    margin-top: 10px;
    background: #047857;
    color: #ecfdf5;
    font-weight: 800;
}

.main-content {
    flex: 1;
    width: min(100%, 1120px);
    margin: 24px auto;
    padding: 26px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* ===== Typography ===== */
.page-title,
.orders-page-title,
.main-content > h2 {
    color: #111827;
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 18px;
}

.section-title,
.main-content > h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    margin: 28px 0 14px;
}

.welcome-text {
    margin-bottom: 24px;
    color: #4b5563;
    font-size: 15px;
}

/* ===== Buttons ===== */
.btn-details,
.orders-details-btn,
.btn-primary,
.btn-secondary,
.contact-admin-btn,
.back-btn,
button[type="submit"],
.button-link,
.pagination-link,
.checkout-action,
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn-details,
.orders-details-btn,
.purchase-form .btn-details {
    width: 100%;
}

.btn-details:hover,
.orders-details-btn:hover,
.btn-primary:hover,
.contact-admin-btn:hover,
.back-btn:hover,
.button-link:hover,
.pagination-link:hover,
.checkout-action:hover,
.copy-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}

.btn-secondary {
    background: #4b5563;
}

.btn-secondary:hover {
    background: #374151;
}

.btn-danger {
    background: #dc2626 !important;
    color: #fff !important;
}

.btn-danger:hover {
    background: #b91c1c !important;
}

.btn-disabled,
button:disabled {
    background: #d1d5db !important;
    color: #6b7280 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.copy-btn {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 8px;
}

/* ===== Forms ===== */
form {
    max-width: 100%;
}

label {
    display: block;
    margin: 12px 0 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
#searchBox {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
#searchBox:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-input {
    margin-bottom: 20px;
}

.purchase-form {
    margin-top: auto;
}

.inline-form {
    margin: 0;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.readonly-field {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 12px;
    margin-bottom: 12px;
    color: #374151;
}

.readonly-field small {
    display: block;
    color: #6b7280;
    margin-top: 4px;
}

/* ===== Cards & Messages ===== */
.dashboard-card,
.number-card,
.orders-card,
.deposit-card,
.profile-info-card,
.profile-edit-card,
.stat-card,
.notification-item,
.last-orders,
.order-item-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.number-card,
.orders-card,
.dashboard-card,
.stat-card,
.notification-item,
.deposit-card,
.profile-info-card,
.profile-edit-card,
.order-item-card {
    padding: 18px;
}

.number-card,
.orders-card,
.dashboard-card,
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.number-card:hover,
.orders-card:hover,
.dashboard-card:hover,
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.empty-message,
.success-message,
.alert-message,
.error-message,
.canceled-message {
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 800;
}

.empty-message {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.success-message {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    animation: fadeInMsg 0.3s ease;
}

.alert-message,
.error-message,
.canceled-message {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.canceled-message {
    text-align: center;
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Numbers Page ===== */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.number-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.service-icon,
.flag-icon {
    object-fit: contain;
    flex-shrink: 0;
}

.service-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto;
}

.flag-icon {
    width: 22px;
    height: 16px;
}

.number-value {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
}

.number-info {
    display: grid;
    gap: 7px;
    color: #4b5563;
    font-size: 14px;
}

.number-info span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    text-align: center;
}

.pagination-current {
    color: #4b5563;
    font-weight: 800;
}

.purchase-overlay,
.checkout-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.7);
    z-index: 999999;
}

.purchase-overlay[style*="display:none"],
.purchase-overlay[style*="display: none"] {
    display: none;
}

.purchase-overlay-box,
.checkout-modal-box {
    width: min(100%, 340px);
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
}

.purchase-overlay-box {
    font-size: 20px;
    font-weight: 800;
}

/* ===== Dashboard ===== */
.dashboard-stats,
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin: 24px 0 32px;
}

.dashboard-card,
.stat-card {
    text-align: center;
}

.dashboard-card .number-value,
.dashboard-card .value,
.stat-card strong {
    display: block;
    color: #2563eb;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 4px;
}

.dashboard-card span,
.stat-card span {
    color: #6b7280;
    font-size: 14px;
}

.wallet-display {
    display: inline-flex;
    align-items: center;
    margin: 8px 0 0;
    padding: 6px 11px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
}

.last-orders {
    padding: 10px 18px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.order-item:last-child {
    border-bottom: 0;
}

/* ===== Status ===== */
.order-status,
.orders-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 900;
}

.status-pending,
.orders-status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.status-received,
.status-completed,
.orders-status-completed {
    background: #ecfdf5;
    color: #047857;
}

.status-canceled,
.orders-status-canceled {
    background: #fef2f2;
    color: #dc2626;
}

/* ===== Orders ===== */
.orders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.orders-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.orders-label {
    color: #6b7280;
}

.orders-value {
    color: #111827;
    font-weight: 900;
}

.orders-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* ===== Popups ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.68);
    z-index: 9999;
}

.popup-overlay[style*="display:none"],
.popup-overlay[style*="display: none"] {
    display: none;
}

.popup-box {
    width: min(100%, 380px);
    max-height: min(88vh, 680px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: right;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
}

.popup-box h3 {
    margin-bottom: 14px;
    color: #111827;
}

.popup-box p {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.popup-box form {
    margin: 14px 0 10px;
}

/* ===== Order Details ===== */
.order-details-content {
    width: min(100%, 680px);
}

.info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 11px;
    border-radius: 12px;
    margin: 10px 0;
    overflow-wrap: anywhere;
}

.code-box {
    background: #ecfdf5;
    border: 2px dashed #10b981;
    padding: 16px;
    text-align: center;
    font-size: 24px;
    border-radius: 14px;
    margin-top: 12px;
    color: #065f46;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.status-note {
    color: #dc2626;
    font-weight: 900;
}

/* ===== Notifications ===== */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item.unread {
    border-color: #2563eb;
    background: #eff6ff;
}

.notification-title {
    color: #111827;
    font-weight: 900;
    margin-bottom: 6px;
}

.notification-message {
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.notification-date {
    color: #6b7280;
    font-size: 13px;
}

/* ===== Profile & Deposit ===== */
.profile-info-card,
.profile-edit-card,
.deposit-card {
    margin-bottom: 20px;
}

.profile-info-card h3,
.profile-edit-card h3 {
    margin-bottom: 12px;
    color: #111827;
}

.profile-info-card p,
.deposit-card p {
    margin-bottom: 10px;
}

.balance-box,
.current-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
}

.profile-edit-card hr,
.deposit-card hr,
.main-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 22px 0;
}

.deposit-note {
    color: #6b7280;
    font-size: 14px;
}

/* ===== Checkout Standalone Messages ===== */
.checkout-page {
    min-height: 100vh;
    background: #f4f6f9;
}

.checkout-action {
    width: 100%;
    margin-top: 15px;
}

.checkout-back {
    margin-top: 10px;
    background: #4b5563;
}

.checkout-back:hover {
    background: #374151;
}

.checkout-error-text {
    margin-top: 10px;
    color: #4b5563;
}

/* ===== Scroll To Top ===== */
.scroll-top-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1100;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #1d4ed8;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .main-content {
        margin: 18px;
        width: calc(100% - 36px);
    }

    .numbers-grid,
    .orders-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        min-height: 58px;
        padding: 0 12px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .logo {
        font-size: 15px;
    }

    .user-info {
        font-size: 13px;
        justify-content: flex-end;
        text-align: left;
    }

    .layout {
        display: block;
    }

    .sidebar {
        position: sticky;
        top: 58px;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0 10px;
        transition: max-height 0.25s ease, padding 0.25s ease;
    }

    .sidebar.active {
        max-height: 70vh;
        padding: 10px;
    }

    .sidebar a {
        min-height: 40px;
    }

    .main-content {
        width: calc(100% - 24px);
        margin: 12px;
        padding: 18px;
        border-radius: 12px;
    }

    .page-title,
    .orders-page-title,
    .main-content > h2 {
        font-size: 20px;
    }

    .dashboard-stats,
    .profile-stats,
    .numbers-grid,
    .orders-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .orders-card-row,
    .order-item,
    .info-box,
    .orders-actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .popup-box,
    .checkout-modal-box {
        width: 100%;
        padding: 20px;
    }

    .code-box {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .header {
        gap: 8px;
    }

    .main-content {
        padding: 14px;
    }

    .number-card,
    .orders-card,
    .dashboard-card,
    .stat-card,
    .notification-item,
    .deposit-card,
    .profile-info-card,
    .profile-edit-card {
        padding: 14px;
    }

    .btn-details,
    .orders-details-btn,
    .btn-primary,
    .btn-secondary,
    .contact-admin-btn,
    .back-btn,
    button[type="submit"],
    .button-link,
    .pagination-link,
    .checkout-action {
        width: 100%;
    }

    .scroll-top-btn {
        left: 14px;
        bottom: 14px;
    }
}.hero-section{
    text-align:center;
    padding:40px 20px;
    margin-bottom:30px;
    background:#ffffff;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.hero-logo{
    width:110px;
    height:110px;
    object-fit:contain;
    margin-bottom:15px;
}

.hero-title{
    font-size:36px;
    color:#111827;
    margin-bottom:15px;
}

.hero-description{
    max-width:700px;
    margin:auto;
    color:#6b7280;
    line-height:2;
    font-size:19px;
}

.hero-features{
    margin:25px 0;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
}

.hero-features span{
    background:#eff6ff;
    color:#2563eb;
    padding:10px 16px;
    border-radius:999px;
    font-weight:700;
}

.hero-btn{
    display:inline-block;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    padding:14px 28px;
    border-radius:12px;
    font-weight:700;
}

.hero-btn:hover{
    background:#1d4ed8;
}

@media(max-width:768px){

    .hero-title{
        font-size:28px;
    }

    .hero-description{
    max-width:700px;
    margin:auto;
    color:#6b7280;
    line-height:2;
    font-size:19px;
    font-weight:500;
}

    .hero-logo{
        width:90px;
        height:90px;
    }
}
.seo-section{
    margin-top:50px;
    padding:25px;
    background:#fff;
    border-radius:12px;
    line-height:2;
}

.seo-section h2{
    margin-bottom:15px;
    color:#2563eb;
}

.seo-section p{
    margin-bottom:15px;
    color:#555;
}