
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.chart-card.loading {
    position: relative;
}

.chart-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 15px;
}

.chart-card.loading::before {
    content: '加载中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #000000;
}

.data-table tbody tr td {
    transition: all 0.3s ease;
}

.data-table tbody tr.loading td {
    background: rgba(248, 248, 248, 0.8);
    color: #666;
}

.info-grid .info-item {
    transition: all 0.3s ease;
}

.info-grid.loading .info-item .info-value {
    color: #999;
    font-style: italic;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

.charts-container {
    position: relative;
}

.chart-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chart-card.hidden {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

.chart-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

@media (max-width: 768px) {
    .chart-card.loading::before {
        font-size: 12px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #f8f8f8;
    height: 100vh;
    color: #000000;
    line-height: 1.6;
    overflow: hidden;
}

.page {
    display: none;
    height: 100vh;
    overflow: hidden;
}

.page.active {
    display: block;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.5s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: #666666;
    font-size: 16px;
    font-weight: 600;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2.5px solid #000000;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.form-group input:focus {
    outline: none;
    border-color: #333333;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666666;
    font-size: 12px;
    font-weight: 500;
}

.error-message {
    display: none;
    padding: 10px 15px;
    margin-bottom: 15px;
    background: #fee;
    border: 2.5px solid #dc2626;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
}

.error-message.show {
    display: block;
}

.remember-password-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.remember-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    font-weight: 500;
    color: #000000;
    font-size: 14px;
    gap: 10px;
}

.remember-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remember-checkbox:hover .checkmark {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.remember-checkbox input:checked ~ .checkmark {
    background-color: #000000;
    border-color: #000000;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.remember-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.remember-text {
    white-space: nowrap;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2.5px solid #000000;
}

.auth-footer a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #333333;
    text-decoration: underline;
    transform: translateY(-1px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    width: 100%;
    justify-content: center;
    border: 2.5px solid #000000;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    background: #333333;
    border-color: #333333;
}

.btn-outline {
    background: #ffffff;
    color: #000000;
    border: 2.5px solid #000000;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-outline:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.btn-success {
    background: #000000;
    color: #ffffff;
    border: 2.5px solid #000000;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-danger {
    background: #000000;
    color: #ffffff;
    border: 2.5px solid #000000;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-warning {
    background: #000000;
    color: #ffffff;
    border: 2.5px solid #000000;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-info {
    background: #000000;
    color: #ffffff;
    border: 2.5px solid #000000;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    background: #333333;
    border-color: #333333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.navbar {
    display: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    letter-spacing: -0.5px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #000000;
    font-weight: 600;
}

.main-content {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    background: #ffffff;
    border-right: 2.5px solid #000000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    position: relative;
    z-index: 1000;
}

@media (min-width: 1025px) {
    .sidebar {
        position: relative !important;
        transform: translateX(0) !important;
        height: auto !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08) !important;
    }
    
    .sidebar.open {
        transform: translateX(0) !important;
    }
    
    .sidebar-overlay {
        display: none !important;
        opacity: 0 !important;
    }
    
    .sidebar-toggle-btn {
        display: none !important;
    }
    

    .sidebar-edge-toggle-btn {
        display: none !important;
    }
    
    .content {
        margin-left: 0 !important;
    }
    
    body {
        overflow: auto !important;
    }
    

    .package-select-mobile {
        display: none !important;
    }
    
    .package-selector {
        display: grid !important;
    }
}

.brand-section {
    padding: 25px 20px;
    border-bottom: 2.5px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    margin-bottom: 0;
}

.brand-logo {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-logo i {
    font-size: 20px;
    color: #000000;
}

.brand-name {
    display: flex;
    align-items: center;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 600;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    transform: translateX(5px);
}

.nav-link.active {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    border-left-color: #000000;
    font-weight: 700;
}

.nav-menu-item-has-children {
    position: relative;
}

.nav-link-parent {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 600;
    cursor: pointer;
}

.nav-link-parent:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    transform: translateX(5px);
}

.nav-link-parent.active {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    border-left-color: #000000;
    font-weight: 700;
}

.nav-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.nav-menu-item-has-children.active .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-left: 0;
}

.nav-menu-item-has-children.active .nav-submenu {
    max-height: 500px;
    opacity: 1;
}

.nav-submenu .nav-link,
.nav-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    padding-left: 55px;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 600;
    font-size: 14px;
}

.nav-submenu .nav-link:hover,
.nav-sublink:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    transform: translateX(5px);
}

.nav-submenu .nav-link.active,
.nav-sublink.active {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    border-left-color: #000000;
    font-weight: 700;
}

.get-proxy-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.get-proxy-instructions {
    padding: 25px;
}

.proxy-format {
    display: block;
    background: #000000;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-top: 8px;
    word-break: break-all;
}

.extraction-method-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.extraction-method-card {
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.extraction-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.extraction-method-card.active {
    background: #000000;
    color: #ffffff;
}

.extraction-method-card .card-icon {
    font-size: 48px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.extraction-method-card .card-content {
    flex: 1;
}

.extraction-method-card .card-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.extraction-method-card.active .card-content h3 {
    color: #ffffff;
}

.extraction-method-card .card-content p {
    margin: 0;
    font-size: 14px;
    color: #666666;
}

.extraction-method-card.active .card-content p {
    color: #e5e5e5;
}

.extraction-method-card .card-check {
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.extraction-method-card.active .card-check {
    opacity: 1;
    color: #ffffff;
}

@media (max-width: 768px) {
    .extraction-method-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .extraction-method-card {
        padding: 20px;
        gap: 15px;
    }
    
    .extraction-method-card .card-icon {
        font-size: 36px;
        width: 50px;
        height: 50px;
    }
    
}

.proxy-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.proxy-tab {
    flex: 1;
    padding: 12px 20px;
    border: 2.5px solid #000000;
    background: #ffffff;
    color: #000000;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.proxy-tab:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.proxy-tab.active {
    background: #000000;
    color: #ffffff;
}

.proxy-list-content {
    padding: 0;
}

.proxy-info-block {
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
}

.proxy-credentials {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credential-item label {
    min-width: 120px;
    font-weight: 600;
    color: #000000;
}

.proxy-input {
    flex: 1;
    padding: 12px 15px;
    border: 2.5px solid #000000;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #f8f8f8;
    color: #000000;
}

.proxy-input[readonly] {
    background: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.9;
}

.copy-btn, .toggle-visibility-btn {
    padding: 12px 18px;
    border: 2.5px solid #000000;
    background: #000000;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover, .toggle-visibility-btn:hover {
    background: #333333;
    transform: translateY(-2px);
}

.proxy-format-full {
    display: block;
    background: #000000;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 10px 0;
    word-break: break-all;
    position: relative;
    padding-right: 80px;
}

.proxy-format-full + .copy-btn {
    margin-top: 10px;
}

.content {
    flex: 1;
    padding: 30px;
    background: #f8f8f8;
    width: 100%;
    overflow-y: auto; 
    overflow-x: hidden; 
}

.content-section {
    display: none;
    position: relative;
}

.content-section.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header-left i {
    font-size: 28px;
    color: #000000;
    display: inline-block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header h1 {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.page-header p {
    color: #666666;
    margin-top: 5px;
    font-weight: 600;
}

.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #000000;
    font-size: 23px;
}

.user-menu-trigger:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-menu-trigger i {
    color: #666666;
    font-size: 32px;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
    font-weight: 600;
    border-bottom: 2.5px solid #000000;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
}

.user-menu-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #333333;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.stat-content h3 {
    color: #000000;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.stat-progress {
    width: 100%;
    height: 6px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: width 0.3s ease;
}

.proxy-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.proxy-info .info-card {
    border-radius: 15px;
}

.proxy-info .info-card .section-header {
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
}

.proxy-info .info-card .section-header h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

.info-card .info-grid {
    padding: 25px;
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 2.5px solid #000000;
}

.info-item .info-label {
    flex-shrink: 0;
}

.info-item .info-value {
    flex: 0 1 auto;
    min-width: 0;
    word-break: break-all;
    text-align: right;
}

.info-item .btn-regenerate-apikey {
    flex-shrink: 0;
    margin-left: 10px;
}

.info-label {
    font-weight: 600;
    color: #666666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    color: #000000;
    font-family: 'Courier New', monospace;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    font-weight: 600;
}

.btn-regenerate-apikey {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-left: 10px;
    white-space: nowrap;
}

.btn-regenerate-apikey:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-regenerate-apikey:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-regenerate-apikey i {
    font-size: 11px;
}

.btn-regenerate-apikey span {
    font-size: 11px;
    letter-spacing: 0.5px;
}

.btn-regenerate-apikey.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-regenerate-apikey.loading i {
    animation: spin 1s linear infinite;
}

.info-item.usage-item {
    border-bottom: 2px solid #000000 !important;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.usage-value {
    border-bottom: none;
    padding-bottom: 0;
}

.sub-accounts-section {
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sub-accounts-section .section-header {
    background: #000000;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2.5px solid #000000;
    position: relative;
}

.sub-accounts-section .section-header h3 {
    color: #ffffff !important;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-add-sub {
    background: rgba(255, 255, 255, 0.2);
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-add-sub:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-add-sub i {
    font-size: 12px;
    margin-right: 5px;
}

.sub-accounts-section .table-container {
    padding: 25px 35px;
}

.whitelist-list-section {
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.whitelist-list-section .section-header {
    background: #000000;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2.5px solid #000000;
    position: relative;
}

.whitelist-list-section .section-header h2 {
    color: #ffffff !important;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.whitelist-list-section .table-container {
    padding: 25px 35px;
}

.table-container {
    overflow-x: auto;
    padding-left: 35px;
    padding-right: 35px;
}

.sub-accounts-card-wrapper,
.whitelist-card-wrapper {
    display: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 2.5px solid #000000;
    color: #000000;
    font-weight: 600;
}

.data-table th {
    background: #ffffff;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.data-table tr:hover {
    background: rgba(0, 0, 0, 0.05);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-active {
    background: #000000;
    color: #ffffff;
    border: 2.5px solid #000000;
}

.status-inactive {
    background: #ffffff;
    color: #000000;
    border: 2.5px solid #000000;
}

.status-admin {
    background: #f59e0b;
    color: #ffffff;
    border: 2.5px solid #f59e0b;
}

.stats-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stats-controls select {
    padding: 8px 12px;
    border: 2.5px solid #000000;
    border-radius: 8px;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.charts-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 550px;
    min-height: 550px;
    max-height: 550px;
}

.chart-card {
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    width: 100%;
    height: 550px;
    min-height: 550px;
    max-height: 550px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chart-card.hidden {
    display: none;
}

.chart-card.active {
    display: flex;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.chart-card h3 {
    color: #000000;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.chart-type-selector {
    display: flex;
    gap: 0;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 2px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    height: 42px;
    transition: all 0.3s ease;
}

.chart-type-selector:hover {
    border-color: #000000;
}

.chart-type-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #666666;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    position: relative;
    z-index: 10;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 0;
    user-select: none;
    pointer-events: auto;
    gap: 6px;
}

.chart-type-btn i {
    margin-right: 0;
}

.chart-type-btn:hover {
    background: #e8e8e8;
    color: #000000;
}

.chart-type-btn.active {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.chart-type-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .chart-type-selector {
        height: 38px;
        max-width: 280px;
    }
    
    .chart-type-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

.chart-type-selector,
.chart-type-btn {
    will-change: transform;
}

.chart-type-selector.animation-complete,
.chart-type-btn.animation-complete {
    will-change: auto;
}

.chart-card canvas {
    flex: 1;
    height: 430px;
    min-height: 430px;
    max-height: 430px;
    width: 100%;
    border-radius: 8px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease forwards;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    position: relative;
    margin: auto;
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2.5px solid #000000;
}

.modal-header h2 {
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    transition: color 0.3s ease;
    font-weight: 700;
}

.modal-close:hover {
    color: #333333;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 248, 248, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading p {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    padding: 15px 20px;
    z-index: 99999;
    max-width: 400px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(400px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 18px;
}

.notification.success .notification-icon {
    color: #000000;
}

.notification.error .notification-icon {
    color: #000000;
}

.notification.warning .notification-icon {
    color: #000000;
}

.notification.info .notification-icon {
    color: #000000;
}

@media (max-width: 768px) {
    
    .overview-row-1 {
        display: block !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid: none !important;
        min-height: auto !important;
    }
    
    .overview-left-half {
        display: block !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid: none !important;
    }
    
    .overview-right-half {
        display: block !important;
    }
    
    body {
        overflow-x: hidden !important;
        width: 100%;
    }
    
    .main-content {
        flex-direction: row;
        height: 100vh;
        width: 100%;
        overflow-x: hidden;
        position: relative;
        overflow-y: visible !important;
    }
    
    .sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        z-index: 1001;
        order: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25);
    }
    
    
    .content {
        overflow-y: visible !important;
        overflow-x: hidden;
    }
    
    #overviewContent {
        overflow: visible !important;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    
    .sidebar-toggle-btn {
        display: none !important;
    }
    
    
    .sidebar-edge-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 70px;
        background: #000000;
        color: #ffffff;
        border: 2px solid #000000;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        cursor: pointer;
        font-size: 14px;
        z-index: 1002;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
        opacity: 0.9;
    }
    
    .sidebar-edge-toggle-btn:hover {
        background: #ffffff;
        color: #000000;
        opacity: 1;
        transform: translateY(-50%) translateX(3px);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
        width: 28px;
    }
    
    .sidebar-edge-toggle-btn:active {
        transform: translateY(-50%) translateX(2px);
    }
    
    .sidebar-edge-toggle-btn i {
        transition: transform 0.3s ease;
    }
    
    
    .sidebar.open + #sidebarOverlay + .sidebar-edge-toggle-btn,
    .sidebar.open + .sidebar-edge-toggle-btn {
        left: 280px;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.open + #sidebarOverlay + .sidebar-edge-toggle-btn:hover,
    .sidebar.open + .sidebar-edge-toggle-btn:hover {
        transform: translateY(-50%) translateX(-3px);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    }
    
    .sidebar.open + #sidebarOverlay + .sidebar-edge-toggle-btn i,
    .sidebar.open + .sidebar-edge-toggle-btn i {
        transform: rotate(180deg);
    }
    
    
    .sidebar-edge-toggle-btn.sidebar-open {
        left: 280px;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar-edge-toggle-btn.sidebar-open:hover {
        transform: translateY(-50%) translateX(-3px);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    }
    
    .sidebar-edge-toggle-btn.sidebar-open i {
        transform: rotate(180deg);
    }
    
    .brand-section {
        padding: 20px 15px;
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }
    
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-logo i {
        font-size: 18px;
    }
    
    .brand-title {
        font-size: 16px;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 15px 0;
        flex: 1;
    }
    
    .nav-link {
        white-space: normal;
        border-left: 3px solid transparent;
        border-bottom: none;
        padding: 12px 20px;
    }
    
    .nav-link.active {
        border-left: 3px solid #000000;
        border-bottom: none;
    }
    
    .content {
        order: 1;
        padding: 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin-left: 0;
        transition: margin-left 0.3s ease-in-out;
    }
    
    .sidebar-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #ffffff;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        margin-right: 12px;
        font-size: 20px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        position: relative;
        overflow: hidden;
    }
    
    .sidebar-toggle-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .sidebar-toggle-btn:hover::before {
        width: 300px;
        height: 300px;
    }
    
    .sidebar-toggle-btn:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }
    
    .sidebar-toggle-btn:active {
        transform: translateY(0) scale(0.98);
    }
    
    .sidebar-toggle-btn i {
        position: relative;
        z-index: 1;
        transition: transform 0.3s ease;
    }
    
    .sidebar.open ~ .content .sidebar-toggle-btn i {
        transform: rotate(90deg);
    }
    
    .page-header-left {
        display: flex;
        align-items: center;
    }
    
    .content-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .proxy-info {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        flex-direction: column;
        min-height: 400px;
        padding: 0;
    }
    
    .chart-card {
        min-height: 400px;
        max-width: 100%;
        padding: 20px;
    }
    
    .chart-card canvas {
        min-height: 300px;
        max-height: 400px;
    }
    
    
    .overview-layout {
        gap: 20px;
    }
    
    .overview-row-2 .charts-container {
        padding: 0 35px;
    }
    
    .page-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        padding: 12px 15px !important;
        margin-bottom: 0 !important;
        z-index: 999 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }
    
    .page-header-left {
        flex: 1 !important;
        min-width: 0 !important;
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .page-header-left i {
        font-size: 20px !important;
    }
    
    .page-header h1 {
        font-size: 18px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
    }
    
    .header-actions {
        flex-shrink: 0 !important;
    }
    
    .user-menu-trigger {
        padding: 6px 12px !important;
        font-size: 15px !important;
        gap: 6px !important;
    }
    
    .user-menu-trigger i {
        font-size: 22px !important;
    }
    
    .user-menu-trigger span {
        font-size: 14px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 90px !important;
    }
    
    
    .content-section {
        padding-top: 70px !important;
    }
    
    .content {
        padding-top: 0 !important;
    }
    
    .stats-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    
    .overview-row-1 {
        display: block !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid: none !important;
        gap: 16px;
        min-height: auto !important;
    }
    
    .overview-left-half {
        display: block !important;
        grid: none !important;
        width: 100%;
    }
    
    .overview-right-half {
        display: block !important;
        grid: none !important;
        flex-direction: column !important;
        gap: 16px;
        width: 100%;
    }
    
    .overview-section {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
        overflow-x: hidden;
        background: white;
        border: 2px solid #000000;
        border-radius: 12px;
        margin: 0;
    }
    
    .overview-right-half {
        width: 100% !important;
        height: auto !important;
        overflow-x: hidden;
    }
    
    .overview-row-1 {
        overflow-x: hidden;
    }
    
    .overview-left-half {
        overflow-x: hidden;
    }
    
    .info-grid {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 20px;
    }
    
    .stats-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
    
    .stat-card-compact {
        padding: 16px;
    }
    
    
    .quick-get-proxy-btn {
        top: 8px;
        right: 8px;
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .quick-get-proxy-btn i {
        font-size: 10px;
    }
    
    .quick-get-proxy-btn span {
        font-size: 10px;
    }
    
    
    .shop-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .shop-left-panel,
    .shop-right-panel {
        width: 100% !important;
    }
    
    .shop-section {
        height: auto !important;
        max-height: none !important;
    }
    
    .shop-section-content {
        padding: 20px !important;
        max-height: 800px;
        overflow-y: auto;
    }
    
    .package-selector {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .package-card {
        padding: 20px !important;
    }
    
    .orders-table-container {
        max-height: 400px;
        overflow-y: auto;
    }
}

@media (max-width: 1024px) {
    
    .main-content {
        flex-direction: row;
    }
    
    .sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        z-index: 1001;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    
    .sidebar-toggle-btn {
        display: none !important;
    }
    
    
    .sidebar-edge-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 70px;
        background: #000000;
        color: #ffffff;
        border: 2px solid #000000;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        cursor: pointer;
        font-size: 14px;
        z-index: 1002;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
        opacity: 0.9;
    }
    
    .sidebar-edge-toggle-btn:hover {
        background: #ffffff;
        color: #000000;
        opacity: 1;
        transform: translateY(-50%) translateX(3px);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
        width: 28px;
    }
    
    .sidebar-edge-toggle-btn:active {
        transform: translateY(-50%) translateX(2px);
    }
    
    .sidebar-edge-toggle-btn i {
        transition: transform 0.3s ease;
    }
    
    
    .sidebar-edge-toggle-btn.sidebar-open {
        left: 280px;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar-edge-toggle-btn.sidebar-open:hover {
        transform: translateY(-50%) translateX(-3px);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    }
    
    .sidebar-edge-toggle-btn.sidebar-open i {
        transform: rotate(180deg);
    }
    
    
    .page-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        padding: 12px 15px !important;
        margin-bottom: 0 !important;
        z-index: 999 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }
    
    
    .content-section {
        padding-top: 70px !important;
    }
    
    .content {
        margin-left: 0;
        width: 100%;
        overflow-y: visible !important;
        padding-top: 0 !important;
    }
    
    
    .overview-left-half > .overview-section {
        overflow: hidden !important;
        max-height: calc(100vh - 350px) !important;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    .overview-left-half .stats-grid-compact {
        overflow: visible !important;
        flex: 1;
        min-height: 0;
    }
    
    .overview-left-half .stat-card-compact {
        padding: 10px;
        gap: 10px;
    }
    
    .overview-left-half .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .overview-left-half .stat-content h3 {
        font-size: 11px;
    }
    
    .overview-left-half .stat-value {
        font-size: 16px;
    }
    
    .overview-left-half .stat-detail {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    
    .page-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        padding: 10px 12px !important;
        margin-bottom: 0 !important;
        z-index: 999 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }
    
    .page-header-left {
        flex: 1 !important;
        min-width: 0 !important;
        gap: 5px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .page-header-left i {
        font-size: 18px !important;
    }
    
    .page-header h1 {
        font-size: 16px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
    }
    
    .header-actions {
        flex-shrink: 0 !important;
    }
    
    .user-menu-trigger {
        padding: 5px 10px !important;
        font-size: 13px !important;
        gap: 5px !important;
    }
    
    .user-menu-trigger i {
        font-size: 20px !important;
    }
    
    .user-menu-trigger span {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 80px !important;
    }
    
    
    .content-section {
        padding-top: 65px !important;
    }
    
    .content {
        padding-top: 0 !important;
    }
    
    
    .overview-row-1 {
        display: block !important;
        grid: none !important;
        grid-template-columns: none !important;
        min-height: auto !important;
    }
    
    .overview-left-half {
        display: block !important;
        grid: none !important;
        grid-template-columns: none !important;
    }
    
    .overview-right-half {
        display: block !important;
    }
    
    body {
        overflow-x: hidden !important;
        width: 100%;
    }
    
    .auth-card {
        padding: 20px;
        margin: 10px;
    }
    
    .content {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .sidebar {
        width: 260px;
    }
    
    .sidebar-toggle-btn {
        width: 42px;
        height: 42px;
        font-size: 19px;
        margin-right: 10px;
    }
    
    .content-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .sub-accounts-section {
        padding: 20px;
    }
    
    .chart-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    
    .overview-layout {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    
    .overview-left-half > .overview-section {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow: hidden !important;
        max-height: calc(100vh - 300px) !important; 
        min-height: 0;
    }
    
    
    .overview-left-half > .overview-section .section-header {
        background: #000000;
        color: white;
        padding: 10px 14px;
        margin: 0;
        border-radius: 10px 10px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }
    
    .overview-left-half > .overview-section .section-header h2 {
        font-size: 14px;
        font-weight: 700;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 6px;
        color: #ffffff !important;
    }
    
    .overview-left-half > .overview-section .section-header h2 i {
        color: #ffffff !important;
        font-size: 13px;
    }
    
    
    .overview-left-half .stats-grid-compact {
        padding: 10px;
        display: grid;
        grid-template-columns: 1fr !important; 
        gap: 8px;
        overflow: visible !important;
        flex: 1;
        min-height: 0;
        box-sizing: border-box;
    }
    
    .overview-left-half .stat-card-compact {
        background: white;
        border: 2px solid #000000;
        border-radius: 8px;
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        min-height: 0;
        box-sizing: border-box;
        width: 100%;
    }
    
    .overview-left-half .stat-icon {
        width: 40px;
        height: 40px;
        background: #000000;
        color: white;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .overview-left-half .stat-content {
        flex: 1;
        min-width: 0;
        overflow: visible;
    }
    
    .overview-left-half .stat-content h3 {
        font-size: 13px;
        color: #6b7280;
        font-weight: 600;
        margin: 0 0 4px 0;
        line-height: 1.3;
    }
    
    .overview-left-half .stat-value {
        font-size: 18px;
        font-weight: 700;
        color: #000000;
        margin-bottom: 2px;
        line-height: 1.3;
    }
    
    .overview-left-half .stat-detail {
        font-size: 11px;
        color: #9ca3af;
        line-height: 1.3;
    }
    
    .overview-left-half .quick-get-proxy-btn {
        position: absolute;
        top: 4px;
        right: 4px;
        padding: 3px 6px;
        font-size: 9px;
        gap: 3px;
        z-index: 10;
    }
    
    .overview-left-half .quick-get-proxy-btn i {
        font-size: 8px;
    }
    
    .overview-left-half .quick-get-proxy-btn span {
        font-size: 9px;
    }
    
    
    .shop-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .shop-left-panel,
    .shop-right-panel {
        width: 100% !important;
    }
    
    .shop-section {
        height: auto !important;
        max-height: none !important;
    }
    
    .shop-section-content {
        padding: 15px !important;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important; 
        overflow-y: visible !important; 
    }
    
    .purchase-area {
        min-height: auto !important;
        height: auto !important;
    }
    
    .package-purchase-container {
        min-height: auto !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        gap: 20px; 
    }
    
    .package-selection-area {
        min-height: auto !important;
        flex: 0 0 auto !important; 
    }
    
    .package-payment-section {
        margin-top: 20px !important; 
        padding-top: 20px !important;
        flex-shrink: 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .package-payment-section .form-group {
        margin-bottom: 15px !important; 
    }
    
    .package-selection-area .form-group {
        margin-bottom: 20px !important; 
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .package-selection-area .form-group label {
        display: block;
        margin-bottom: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    
    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    
    .package-selector {
        display: none !important; 
    }
    
    .package-select-mobile {
        display: block !important; 
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        border: 2px solid #000000;
        border-radius: 8px;
        background: #ffffff;
        color: #000000;
        font-size: 14px; 
        font-weight: 500;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 12px;
        padding-right: 40px;
        margin-top: 0.5rem;
        transition: all 0.2s ease;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .package-select-mobile:hover {
        border-color: #333333;
    }
    
    .package-select-mobile:focus {
        outline: none;
        border-color: #000000;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }
    
    .package-select-mobile option {
        padding: 10px 12px;
        font-size: 13px; 
        background: #ffffff;
        color: #000000;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .package-card {
        padding: 6px !important; 
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        text-align: left !important;
        min-height: 30px; 
    }
    
    .package-card:last-child {
        border-bottom: none !important;
    }
    
    .package-card:hover {
        background: #f9fafb !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .package-card.selected {
        background: #000000 !important;
        color: white !important;
    }
    
    .package-card.selected * {
        color: white !important;
    }
    
    .package-card.selected .package-discount-price {
        color: white !important;
    }
    
    .package-header {
        display: flex !important;
        flex: 1 !important;
        flex-direction: column !important;
        gap: 2px !important; 
        text-align: left !important;
    }
    
    .package-header {
        border-bottom: 1px solid #e5e7eb !important; 
        padding-bottom: 0.25rem !important; 
        margin-bottom: 0.375rem !important; 
    }
    
    .package-name {
        font-size: 10px !important; 
        margin: 0 !important;
        font-weight: 600;
        text-transform: uppercase;
        line-height: 1.2;
    }
    
    .package-card .package-badge {
        padding: 0.15rem 0.4rem !important; 
        font-size: 0.65rem !important; 
        font-weight: normal !important;
        font-family: 'Shadows Into Light', cursive !important;
        letter-spacing: 0.3px !important; 
        border-radius: 0 12px 0 8px !important; 
        display: flex !important;
        align-items: center !important;
        gap: 0.1rem !important; 
        box-shadow: 0 1px 4px rgba(255, 107, 107, 0.2) !important; 
    }
    
    .package-card .package-badge i {
        font-size: 0.7rem !important; 
    }
    
    .package-main-info {
        margin-bottom: 0.5rem !important; 
    }
    
    .package-price-display {
        margin-bottom: 0.25rem !important; 
    }
    
    .price-symbol {
        font-size: 0.875rem !important; 
        margin-top: 0.25rem !important; 
    }
    
    .price-value {
        font-size: 1.75rem !important; 
    }
    
    .package-traffic-display {
        margin-bottom: 0.25rem !important; 
    }
    
    .traffic-value {
        font-size: 1rem !important; 
    }
    
    .traffic-unit {
        font-size: 0.75rem !important; 
    }
    
    .package-unit-rate {
        font-size: 0.65rem !important; 
    }
    
    .package-divider {
        margin-bottom: 0.5rem !important; 
    }
    
    .package-features {
        display: none !important;
    }
    
    .proxy-type-selector {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .proxy-type-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    .package-payment-section {
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
    }
    
    .package-payment-section .form-group {
        margin-bottom: 0.5rem !important;
    }
    
    
    .package-selector {
        display: none !important;
    }
    
    .package-select-mobile {
        display: block !important;
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        border: 2px solid #000000;
        border-radius: 8px;
        background: #ffffff;
        color: #000000;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 12px;
        padding-right: 40px;
        margin-top: 0.5rem;
        transition: all 0.2s ease;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .package-select-mobile:hover {
        border-color: #333333;
    }
    
    .package-select-mobile:focus {
        outline: none;
        border-color: #000000;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }
    
    .package-select-mobile option {
        padding: 10px 12px;
        font-size: 13px;
        background: #ffffff;
        color: #000000;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    
    .orders-table-wrapper {
        display: none !important;
    }
    
    .orders-card-wrapper {
        display: block !important;
        width: 100%;
    }
    
    .order-card-mobile {
        background: #ffffff;
        border: 2px solid #000000;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 12px;
        transition: all 0.2s ease;
    }
    
    .order-card-mobile:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
    
    .order-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 2px solid #000000;
    }
    
    .order-card-id {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .order-card-id i {
        font-size: 14px;
        color: #666666;
    }
    
    .order-card-id span {
        font-size: 13px;
        font-weight: 600;
        color: #000000;
        word-break: break-all;
        font-family: 'Courier New', monospace;
    }
    
    .order-card-status {
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    .order-card-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .order-card-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    
    .order-card-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #666666;
        font-weight: 500;
        flex-shrink: 0;
    }
    
    .order-card-label i {
        font-size: 11px;
        width: 14px;
    }
    
    .order-card-value {
        font-size: 13px;
        color: #000000;
        font-weight: 600;
        text-align: right;
        word-break: break-word;
        flex: 1;
        margin-left: 10px;
    }
    
    .orders-empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #666666;
    }
    
    .orders-empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #cccccc;
        display: block;
    }
    
    .orders-empty-state p {
        font-size: 14px;
        color: #999999;
    }
    
    
    .sub-accounts-table-wrapper {
        display: none !important;
    }
    
    .sub-accounts-card-wrapper {
        display: block !important;
        width: 100%;
        padding: 15px;
    }
    
    .sub-account-card-mobile {
        background: #ffffff;
        border: 2px solid #000000;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 12px;
        transition: all 0.2s ease;
    }
    
    .sub-account-card-mobile:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
    
    .sub-account-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 2px solid #000000;
    }
    
    .sub-account-card-id {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .sub-account-card-id i {
        font-size: 14px;
        color: #666666;
    }
    
    .sub-account-card-id span {
        font-size: 13px;
        font-weight: 600;
        color: #000000;
        word-break: break-all;
        font-family: 'Courier New', monospace;
    }
    
    .sub-account-card-status {
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    .sub-account-card-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .sub-account-card-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    
    .sub-account-card-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #666666;
        font-weight: 500;
        flex-shrink: 0;
    }
    
    .sub-account-card-label i {
        font-size: 11px;
        width: 14px;
    }
    
    .sub-account-card-value {
        font-size: 13px;
        color: #000000;
        font-weight: 600;
        text-align: right;
        word-break: break-word;
        flex: 1;
        margin-left: 10px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }
    
    .password-mobile-cell {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .password-toggle-mobile-btn {
        background: transparent;
        border: none;
        color: #666666;
        cursor: pointer;
        padding: 2px 4px;
        font-size: 12px;
        transition: color 0.2s;
    }
    
    .password-toggle-mobile-btn:hover {
        color: #000000;
    }
    
    .sub-account-card-actions {
        display: flex;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e5e7eb;
    }
    
    .sub-account-card-actions .btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .sub-accounts-empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #666666;
    }
    
    .sub-accounts-empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #cccccc;
        display: block;
    }
    
    .sub-accounts-empty-state p {
        font-size: 14px;
        color: #999999;
    }
    
    
    .whitelist-table-wrapper {
        display: none !important;
    }
    
    .whitelist-card-wrapper {
        display: block !important;
        width: 100%;
        padding: 15px;
    }
    
    .whitelist-card-mobile {
        background: #ffffff;
        border: 2px solid #000000;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 12px;
        transition: all 0.2s ease;
    }
    
    .whitelist-card-mobile:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
    
    .whitelist-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 2px solid #000000;
    }
    
    .whitelist-card-ip {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .whitelist-card-ip i {
        font-size: 14px;
        color: #666666;
    }
    
    .whitelist-card-ip span {
        font-size: 13px;
        font-weight: 600;
        color: #000000;
        word-break: break-all;
        font-family: 'Courier New', monospace;
    }
    
    .whitelist-card-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .whitelist-card-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    
    .whitelist-card-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #666666;
        font-weight: 500;
        flex-shrink: 0;
    }
    
    .whitelist-card-label i {
        font-size: 11px;
        width: 14px;
    }
    
    .whitelist-card-value {
        font-size: 13px;
        color: #000000;
        font-weight: 600;
        text-align: right;
        word-break: break-word;
        flex: 1;
        margin-left: 10px;
    }
    
    .whitelist-empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #666666;
    }
    
    .whitelist-empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #cccccc;
        display: block;
    }
    
    .whitelist-empty-state p {
        font-size: 14px;
        color: #999999;
    }
}

.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.overview-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.overview-row-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    min-height: 300px;
}

.overview-left-half {
    width: 100%;
    height: 100%;
    display: block;
}

.overview-right-half {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    height: 100%;
}

.overview-section {
    width: 100%;
    height: 100%; 
    min-height: 280px; 
    overflow: auto; 
    display: flex;
    flex-direction: column;
    
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.overview-right-half .info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px 20px 10px 20px; 
    flex: 1;
    box-sizing: border-box;
}

.overview-section .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    border-left: 4px solid #000000;
    border-right: 2.5px solid #000000;
    border-top: 2.5px solid #000000;
    border-bottom: 2.5px solid #000000;
    margin-bottom: 10px;
}

.overview-section .info-item:last-child {
    margin-bottom: 0; 
}

.overview-section .info-value {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 20px 10px 20px; 
    flex: 1;
    height: 100%;
    box-sizing: border-box;
}

.overview-row-2 {
    grid-column: 1 / -1;
    width: 100%;
}

.overview-row-2 .overview-section {
    margin-bottom: 0;
    overflow: hidden;
    padding: 0;
}

.overview-row-2 .charts-container {
    padding: 0 35px;
    margin: 0;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.overview-row-2 .chart-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: #ffffff;
    margin: 0;
}

.overview-row-2 .chart-header {
    padding: 20px 0;
    margin-bottom: 0;
}

.overview-row-2 .chart-card canvas {
    border-radius: 0;
}

.section-header {
    background: #000000;
    color: #ffffff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
    position: relative;
    min-height: 60px;
    overflow: visible;
    z-index: 1;
}

.section-header h2,
.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff !important;
}

.section-header h2 i,
.section-header h3 i {
    margin-right: 10px;
    color: #ffffff !important;
}

.section-header small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: none;
    opacity: 0.85;
}

.section-header > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-header > div:last-child {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.section-header .btn-add,
.section-header .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.section-header .btn-primary:hover,
.section-header .btn-add:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.section-header .btn-outline {
    background: transparent;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.section-header .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.btn-edit {
    background: rgba(255, 255, 255, 0.2);
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-edit:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-edit i {
    margin-right: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2.5px solid #000000;
}

.form-actions .btn {
    width: auto;
    min-width: 120px;
}

.password-toggle {
    margin: 15px 0;
}

.password-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.password-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000000;
    cursor: pointer;
}

.password-toggle span {
    font-size: 16px;
}

.password-change-section {
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.password-change-section.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
}

.stat-detail {
    font-size: 12px;
    color: #666666;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overview-section .stats-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.custom-select {
    position: relative;
    display: inline-block;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 15px;
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    font-weight: 600;
    color: #000000;
}

.select-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.select-trigger i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.select-trigger.active i {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.select-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
    color: #000000;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    color: #333333;
}

.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.stat-card-compact {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #000000;
    border: 2.5px solid #000000;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 90px; 
    overflow: visible;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card-compact .stat-icon {
    width: 45px;
    height: 45px;
    background: #000000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-card-compact .stat-content h3 {
    font-size: 16px;
    color: #666666;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card-compact .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 5px 0;
    font-family: 'Courier New', monospace;
}

.stat-card-compact .stat-detail {
    font-size: 12px;
    color: #666666;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-get-proxy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

.quick-get-proxy-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-get-proxy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.quick-get-proxy-btn i {
    font-size: 11px;
}

.quick-get-proxy-btn span {
    font-size: 11px;
    letter-spacing: 0.5px;
}

.chartjs-tooltip {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2.5px solid #000000 !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08) !important;
}

.chartjs-tooltip-title {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #000000 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.chartjs-tooltip-body {
    font-size: 14px !important;
    color: #000000 !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.chartjs-tooltip-body-item {
    margin: 4px 0 !important;
    padding: 2px 0 !important;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chartjs-tooltip {
    animation: tooltipFadeIn 0.2s ease-out !important;
}

.chart-tooltip {
    position: absolute !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    pointer-events: none !important;
    z-index: 1000 !important;
    border: 2.5px solid #000000 !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08) !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    max-width: 220px !important;
    line-height: 1.5 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.chart-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.chart-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #000000;
    font-weight: 500;
}

.chart-loading-spinner .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: chartSpinner 1s linear infinite;
}

@keyframes chartSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-tooltip.show {
    opacity: 1 !important;
}

.purchase-history-list {
    max-height: 500px;
    overflow-y: auto;
}

.purchase-order-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.purchase-order-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.order-id {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-processing {
    background: #dbeafe;
    color: #2563eb;
}

.status-completed {
    background: #d1fae5;
    color: #059669;
}

.status-failed {
    background: #fee2e2;
    color: #dc2626;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.order-notes {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.notes-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
}

.notes-value {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    font-weight: 500;
}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2.5px solid #000000;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.form-group textarea:focus {
    outline: none;
    border-color: #333333;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-group textarea::placeholder {
    color: #999999;
    font-style: italic;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    border: 2.5px solid #000000;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.form-group select:focus {
    outline: none;
    border-color: #333333;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-group select:hover {
    border-color: #333333;
}

.form-group select option {
    padding: 10px;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
}

.form-group select:disabled {
    background-color: #f5f5f5;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2.5px solid #000000;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-textarea:focus {
    outline: none;
    border-color: #333333;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-textarea::placeholder {
    color: #999999;
    font-style: italic;
}

.form-group select.form-select,
.form-select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    border: 2.5px solid #000000;
    border-radius: 10px;
    background: #ffffff;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.form-group select.form-select:focus,
.form-select:focus {
    outline: none;
    border-color: #333333;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-group select.form-select:hover,
.form-select:hover {
    border-color: #333333;
}

.form-group select.form-select option,
.form-select option {
    padding: 10px;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
}

.form-group select.form-select:disabled,
.form-select:disabled {
    background-color: #f5f5f5;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .order-details {
        grid-template-columns: 1fr;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: 1000px;
    max-height: 1000px;
}

.shop-left-panel,
.shop-right-panel {
    display: flex;
    flex-direction: column;
}

.shop-section {
    background: white;
    border: 2.5px solid #000000;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop-section .section-header {
    background: #000000;
    color: #ffffff;
    padding: 20px 25px;
    margin: 0;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-section .section-header h2 {
    color: #ffffff !important;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.shop-section .section-header h2 i {
    margin-right: 10px;
    color: #ffffff !important;
}

.shop-section .section-subtitle {
    color: #ffffff;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    opacity: 0.8;
}

.shop-section-content {
    padding: 2rem;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    min-height: 0;
    height: 100%;
}

.purchase-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.proxy-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.proxy-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.proxy-type-btn:hover {
    border-color: #000000;
    color: #000000;
}

.proxy-type-btn.active {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.proxy-type-btn i {
    font-size: 1.25rem;
}

.package-purchase-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.package-selection-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.package-payment-section {
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: 0;
    flex-shrink: 0;
}

.package-payment-section .form-group {
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.package-payment-section .form-group:has(select:focus) {
    z-index: 1000;
}

.package-payment-section .form-select {
    position: relative;
    z-index: inherit;
}

.package-payment-section .form-select:focus {
    z-index: 1001;
}

.package-payment-section .btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 0;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2.5px solid #000000;
    border-radius: 8px;
    background: white;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-select:hover {
    border-color: #333333;
}

.package-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.package-select-mobile {
    display: none;
}

.package-selector::-webkit-scrollbar {
    width: 6px;
}

.package-selector::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.package-selector::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.package-selector::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.package-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 360px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.package-card:hover {
    border-color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.package-card.selected {
    border-color: #000000;
    border-width: 2px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.package-card.featured {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.package-card .package-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff8787 0%, #ff6b6b 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: normal;
    font-family: 'Shadows Into Light', cursive;
    letter-spacing: 0.5px;
    border-radius: 0 16px 0 12px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.25);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.package-card .package-badge i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.package-card:hover .package-badge {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.35);
}

.package-card:hover .package-badge i {
    transform: scale(1.1) rotate(-5deg);
}

.package-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.package-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.package-main-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.package-price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.price-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0.5rem;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    letter-spacing: -0.02em;
}

.package-traffic-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.traffic-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
}

.traffic-unit {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
}

.package-unit-rate {
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 600;
}

.package-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin-bottom: 1.25rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 0;
}

.package-features li {
    font-size: 0.875rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5;
}

.package-features li i {
    color: #10b981;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.package-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.package-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.package-info h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.package-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.spec-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.spec-value {
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 600;
}

.spec-value.highlight {
    color: #16a34a;
    font-weight: 700;
}

.traffic-amount-selector {
    margin-top: 0.5rem;
}

.amount-input-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}

.amount-input-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.amount-input-container:focus-within {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
}

.amount-input {
    flex: 1;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    outline: none;
    padding: 0.5rem;
    letter-spacing: -0.5px;
}

.amount-input::placeholder {
    color: #a0aec0;
    font-weight: 500;
}

.amount-unit {
    color: #718096;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(113, 128, 150, 0.1);
    border-radius: 8px;
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.preset-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    border-color: #000000;
    color: #000000;
}

.preset-btn.active {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.payment-method-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.payment-method-btn:hover {
    border-color: #000000;
    color: #000000;
}

.payment-method-btn.active {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.payment-method-btn i {
    font-size: 1.25rem;
}

.price-info {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-item:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.125rem;
    color: #1f2937;
}

.price-label {
    color: #6b7280;
    font-weight: 500;
}

.price-value {
    color: #000000;
    font-weight: 600;
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1rem;
}

.order-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: end;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #000000;
}

.btn-small {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.orders-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.orders-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 100%;
    padding-left: 35px;
    padding-right: 35px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
}

.orders-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
}

.orders-table tr:hover {
    background: #f9fafb;
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.orders-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.orders-card-wrapper {
    display: none;
}

.order-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.completed {
    background: #000000;
    color: #ffffff;
}

.order-status.processing {
    background: #f3f4f6;
    color: #000000;
    border: 1px solid #000000;
}

.order-status.pending {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.order-status.failed {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.orders-pagination {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 0 0.5rem 0;
    margin: 0 2rem;
    border-top: 1px solid #e5e7eb;
    width: calc(100% - 4rem);
    min-height: 50px;
    margin-top: auto;
    flex-shrink: 0;
    background: white;
}

.orders-pagination .pagination-nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-end !important;
    gap: 0.5rem;
    margin-right: 0;
    width: 100%;
}

.orders-pagination .pagination-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.orders-pagination .pagination-btn:hover:not(:disabled) {
    border-color: #000000;
    color: #000000;
    background: #f9fafb;
}

.orders-pagination .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.orders-pagination .pagination-pages {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.orders-pagination .pagination-page {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: white;
    color: #000000;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.orders-pagination .pagination-page:hover {
    border-color: #000000;
    background: #f9fafb;
}

.orders-pagination .pagination-page.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

.orders-pagination .pagination-ellipsis {
    display: inline-flex !important;
    align-items: center;
    padding: 0.5rem 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-controls select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #000000;
    color: #000000;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-ellipsis {
    padding: 0.5rem 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.pagination-page {
    padding: 0.5rem 0.75rem;
    background: white;
    color: #000000;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    border-color: #000000;
    background: #f9fafb;
}

.pagination-page.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

.pagination-goto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.pagination-goto input {
    width: 3rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    font-size: 0.875rem;
}

.btn-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    border-color: #000000;
    color: #000000;
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .shop-section {
        padding: 1.5rem;
    }
    
    .proxy-type-selector,
    .payment-method-selector {
        grid-template-columns: 1fr;
    }
    
    .amount-presets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .package-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    
    .package-selector {
        display: none !important; 
    }
    
    .package-select-mobile {
        display: block !important; 
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        border: 2px solid #000000;
        border-radius: 8px;
        background: #ffffff;
        color: #000000;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 12px;
        padding-right: 40px;
        margin-top: 0.5rem;
        transition: all 0.2s ease;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .package-select-mobile:hover {
        border-color: #333333;
    }
    
    .package-select-mobile:focus {
        outline: none;
        border-color: #000000;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }
    
    .package-select-mobile option {
        padding: 10px 12px;
        font-size: 13px;
        background: #ffffff;
        color: #000000;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    
    .orders-table-wrapper {
        display: none !important;
    }
    
    .orders-card-wrapper {
        display: block !important;
        width: 100%;
    }
    
    .order-card-mobile {
        background: #ffffff !important;
        border: 2px solid #000000 !important;
        border-radius: 12px !important;
        padding: 15px !important;
        margin-bottom: 12px !important;
        transition: all 0.2s ease;
    }
    
    .order-card-mobile:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
    
    .order-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 2px solid #000000 !important;
    }
    
    .order-card-id {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .order-card-id i {
        font-size: 14px;
        color: #666666;
    }
    
    .order-card-id span {
        font-size: 13px;
        font-weight: 600;
        color: #000000;
        word-break: break-all;
        font-family: 'Courier New', monospace;
    }
    
    .order-card-status {
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    .order-card-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .order-card-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    
    .order-card-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #666666;
        font-weight: 500;
        flex-shrink: 0;
    }
    
    .order-card-label i {
        font-size: 11px;
        width: 14px;
    }
    
    .order-card-value {
        font-size: 13px;
        color: #000000;
        font-weight: 600;
        text-align: right;
        word-break: break-word;
        flex: 1;
        margin-left: 10px;
    }
    
    .orders-empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #666666;
    }
    
    .orders-empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #cccccc;
        display: block;
    }
    
    .orders-empty-state p {
        font-size: 14px;
        color: #999999;
    }
    
    .sub-accounts-table-wrapper {
        display: none !important;
    }
    
    .sub-accounts-card-wrapper {
        display: block !important;
        width: 100%;
        padding: 15px;
    }
    
    .sub-account-card-mobile {
        background: #ffffff !important;
        border: 2px solid #000000 !important;
        border-radius: 12px !important;
        padding: 15px !important;
        margin-bottom: 12px !important;
        transition: all 0.2s ease;
    }
    
    .sub-account-card-mobile:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
    
    .sub-account-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 2px solid #000000 !important;
    }
    
    .sub-account-card-id {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .sub-account-card-id i {
        font-size: 14px;
        color: #666666;
    }
    
    .sub-account-card-id span {
        font-size: 13px;
        font-weight: 600;
        color: #000000;
        word-break: break-all;
        font-family: 'Courier New', monospace;
    }
    
    .sub-account-card-status {
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    .sub-account-card-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .sub-account-card-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    
    .sub-account-card-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #666666;
        font-weight: 500;
        flex-shrink: 0;
    }
    
    .sub-account-card-label i {
        font-size: 11px;
        width: 14px;
    }
    
    .sub-account-card-value {
        font-size: 13px;
        color: #000000;
        font-weight: 600;
        text-align: right;
        word-break: break-word;
        flex: 1;
        margin-left: 10px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }
    
    .password-mobile-cell {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .password-toggle-mobile-btn {
        background: transparent;
        border: none;
        color: #666666;
        cursor: pointer;
        padding: 2px 4px;
        font-size: 12px;
        transition: color 0.2s;
    }
    
    .password-toggle-mobile-btn:hover {
        color: #000000;
    }
    
    .sub-account-card-actions {
        display: flex;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e5e7eb;
    }
    
    .sub-account-card-actions .btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .sub-accounts-empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #666666;
    }
    
    .sub-accounts-empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #cccccc;
        display: block;
    }
    
    .sub-accounts-empty-state p {
        font-size: 14px;
        color: #999999;
    }
    
    .whitelist-table-wrapper {
        display: none !important;
    }
    
    .whitelist-card-wrapper {
        display: block !important;
        width: 100%;
        padding: 15px;
    }
    
    .whitelist-card-mobile {
        background: #ffffff !important;
        border: 2px solid #000000 !important;
        border-radius: 12px !important;
        padding: 15px !important;
        margin-bottom: 12px !important;
        transition: all 0.2s ease;
    }
    
    .whitelist-card-mobile:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
    
    .whitelist-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 2px solid #000000 !important;
    }
    
    .whitelist-card-ip {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .whitelist-card-ip i {
        font-size: 14px;
        color: #666666;
    }
    
    .whitelist-card-ip span {
        font-size: 13px;
        font-weight: 600;
        color: #000000;
        word-break: break-all;
        font-family: 'Courier New', monospace;
    }
    
    .whitelist-card-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .whitelist-card-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    
    .whitelist-card-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #666666;
        font-weight: 500;
        flex-shrink: 0;
    }
    
    .whitelist-card-label i {
        font-size: 11px;
        width: 14px;
    }
    
    .whitelist-card-value {
        font-size: 13px;
        color: #000000;
        font-weight: 600;
        text-align: right;
        word-break: break-word;
        flex: 1;
        margin-left: 10px;
    }
    
    .whitelist-empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #666666;
    }
    
    .whitelist-empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #cccccc;
        display: block;
    }
    
    .whitelist-empty-state p {
        font-size: 14px;
        color: #999999;
    }
    
    .order-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .orders-pagination {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .pagination-controls {
        justify-content: center;
    }
}

.package-badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-id {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.proxy-type,
.traffic-amount,
.order-date,
.order-status {
    display: inline-block;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 30px;
    border: 2px solid #000000;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 50%;
    border: 2px solid #000000;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: #000000;
    border-color: #000000;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(30px);
    background-color: #ffffff;
}

.toggle-switch:hover .toggle-slider {
    border-color: #333333;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider:hover {
    background-color: #333333;
}

.unlimited-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #000000;
    color: #ffffff;
    border: 2.5px solid #000000;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.unlimited-badge i {
    font-size: 12px;
}

.password-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.password-text,
.password-text-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    user-select: text;
    white-space: nowrap;
}

.password-real,
.password-real-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    user-select: text;
    cursor: text;
    white-space: nowrap;
}

.password-toggle-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.password-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.password-toggle-btn i {
    font-size: 14px;
}

.table-password-toggle-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 4px 8px;
    margin-left: 6px;
    cursor: pointer;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    vertical-align: middle;
    min-width: 28px;
    height: 28px;
}

.table-password-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: #999;
    color: #000;
    transform: scale(1.1);
}

.table-password-toggle-btn i {
    font-size: 14px;
    display: inline-block;
}

.password-cell {
    position: relative;
    min-width: 180px;
    max-width: 180px;
    text-align: center;
}

.password-cell span {
    display: inline-block;
}

.password-header-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.password-header-toggle:hover {
    opacity: 0.8;
}

.password-header-toggle .table-password-toggle-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.proxy-credentials-config {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.config-section {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.api-config-compact {
    gap: 40px !important;
}

.api-config-compact .config-section:not(.country-selection-row):not(.config-row-2):not(.config-row-3) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.api-config-compact .config-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.api-config-compact .config-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.config-field-item-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.config-field-item-inline .config-label {
    flex-shrink: 0;
    margin: 0;
    white-space: nowrap;
}

.config-field-item-inline .country-selection-buttons {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

#apiSeparatorContainer {
    display: block; 
}

.api-config-compact .config-section:not(.country-selection-row) .config-label {
    flex-shrink: 0;
    margin: 0;
    white-space: nowrap;
}

.api-config-compact .config-section:not(.country-selection-row) > .proxy-input {
    flex: 0;
}

.api-config-compact .config-section:not(.country-selection-row) > .proxy-select {
    flex: 0;
    width: 200px;
}

.api-config-compact .config-section:not(.country-selection-row) > .country-selection-buttons,
.api-config-compact .config-section:not(.country-selection-row) > .number-input-group,
.api-config-compact .config-section:not(.country-selection-row) > .range-input-group {
    flex: 0;
}

.range-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-number-input {
    width: 80px !important;
    flex-shrink: 0;
    -moz-appearance: textfield; 
    appearance: textfield; 
}

.range-number-input::-webkit-inner-spin-button,
.range-number-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    transition: background 0.3s;
    flex-shrink: 1;
}

.range-slider:hover {
    background: #d1d5db;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    background: #333333;
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.range-slider::-moz-range-thumb:hover {
    background: #333333;
    transform: scale(1.1);
}

.range-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
}

.config-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 0; 
}

.config-field-half {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; 
}

.config-row-account {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.config-row-session {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.config-row-session .session-type-radio {
    display: flex;
    gap: 15px;
}

.config-field-half .session-type-radio {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.config-field-half .radio-label {
    font-size: 13px;
    gap: 5px;
}

.config-label {
    font-weight: 600;
    color: #333333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-label i {
    color: #000000;
}

.country-selection-row {
    display: flex;
    flex-direction: row;
    align-items: center; 
    gap: 8px;
    width: 100%;
}

.country-selection-left {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    gap: 8px;
    flex-shrink: 0;
}

.country-selection-left .config-label {
    margin: 0; 
}

.country-selection-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.country-selection-right {
    display: flex;
    flex-direction: row;
    align-items: center; 
    gap: 8px;
    flex: 1;
    min-width: 500px; 
    flex-wrap: nowrap;
    overflow: visible; 
}

.country-selection-right > * {
    flex-shrink: 0 !important;
}

.country-selection-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.country-btn {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-btn:hover {
    border-color: #000000;
    color: #000000;
}

.country-btn.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

.specific-country-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.region-dropdown-wrapper,
.city-dropdown-wrapper {
    display: flex;
    flex-shrink: 0;
}

.region-dropdown-container,
.city-dropdown-container {
    position: relative;
    width: 160px;
    flex-shrink: 0;
}

.country-dropdown-container,
.region-dropdown-container,
.city-dropdown-container {
    position: relative;
    width: 160px;
    flex-shrink: 0;
}

.specific-country-selector,
.region-dropdown-container,
.city-dropdown-container {
    flex-shrink: 0 !important;
    white-space: nowrap;
}

.region-dropdown-container,
.city-dropdown-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.country-code-search {
    width: 100%;
    padding-right: 30px;
    padding-left: 10px;
    cursor: pointer;
    font-size: 14px;
    height: 44px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.dropdown-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.country-dropdown-list,
.region-dropdown-list,
.city-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 2px solid #000000;
    border-radius: 6px;
    max-height: 300px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.country-search-input {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    outline: none;
}

.country-search-input:focus {
    border-bottom-color: #000000;
}

.country-options-list,
.region-options-list,
.city-options-list {
    max-height: 240px;
    overflow-y: auto;
}

.country-option {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.country-option:hover {
    background: #f0f9ff;
    color: #000000;
}

.country-option:active {
    background: #e0f2fe;
}

.proxy-select {
    padding: 12px 15px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f8f8;
    color: #000000;
    cursor: pointer;
}

.proxy-select:focus {
    outline: none;
    border-color: #0066cc;
}

.session-type-radio {
    display: flex;
    gap: 20px;
}

.config-field-half .session-type-cards {
    flex-direction: row;
    gap: 8px;
    height: 44px;
}

.config-field-half .session-type-card {
    border-radius: 6px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    accent-color: #000000;
}

.radio-label i.fa-question-circle {
    color: #999;
    font-size: 12px;
    cursor: help;
}

.session-type-cards {
    display: flex;
    gap: 8px;
    align-items: center;
}

.session-type-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ip-validity-config {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8f8f8;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.number-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.number-input {
    width: 50px;
    height: 32px;
    padding: 4px 8px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield; 
    appearance: textfield; 
}

.number-input::-webkit-inner-spin-button,
.number-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-input:focus {
    outline: none;
    border-color: #000000;
}

.number-btn-minus,
.number-btn-plus {
    width: 28px;
    height: 28px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn-minus:hover,
.number-btn-plus:hover {
    border-color: #000000;
    background: #000000;
    color: white;
}

.number-btn-minus:active,
.number-btn-plus:active {
    transform: scale(0.95);
}

.session-type-card {
    flex: 0 1 auto;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.session-type-card input[type="radio"] {
    display: none;
}

.session-card-content {
    padding: 10px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.session-type-card i {
    font-size: 16px;
    color: #666;
}

.session-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.session-desc {
    display: none;
}

.session-type-card:hover {
    border-color: #000000;
    background: #f8f8f8;
}

.session-type-card:hover i {
    color: #000000;
}

.session-type-card.active {
    border-color: #000000;
    background: #000000;
}

.session-type-card.active i {
    color: white;
}

.session-type-card.active .session-title {
    color: white;
}

.password-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.password-input-group .proxy-input {
    flex: 1;
}

.command-example-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.command-example-section {
    padding: 10px;
    background: #f8f8f8;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.command-example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.command-example-section .config-label {
    font-size: 13px;
    margin: 0;
}

.btn-copy-small {
    padding: 6px 12px;
    border: 1.5px solid #000000;
    background: #ffffff;
    color: #000000;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
}

.btn-copy-small:hover {
    background: #000000;
    color: #ffffff;
    transform: scale(1.05);
}

.command-textarea-compact {
    width: 100%;
    min-height: 50px;
    max-height: 80px;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #ffffff;
    color: #000000;
    resize: vertical;
    line-height: 1.4;
}

.command-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 15px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #f8f8f8;
    color: #000000;
    resize: vertical;
}

.btn-orange {
    background: #ff6b35;
    border: 2px solid #ff6b35;
    color: white;
}

.btn-white {
    background: white;
    border: 2px solid #000000;
    color: #000000;
}

.btn-white:hover {
    background: #f8f8f8;
}

.proxy-list-generator {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-inline label {
    font-weight: 600;
    min-width: 100px;
    color: #333;
}

.proxy-input-small {
    padding: 8px 12px;
    border: 2px solid #000000;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    width: 100px;
}

.proxy-select-small {
    padding: 8px 12px;
    border: 2px solid #000000;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f8f8;
    flex: 1;
}

.generator-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.generated-proxy-list-container {
    margin-top: 15px;
}

.proxy-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.proxy-list-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f8f8f8;
    color: #333;
    resize: vertical;
}

.country-code-grid div:hover {
    background: #e5e7eb !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    
    .config-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    
    .country-selection-row {
        flex-direction: column !important;
    }
    
    
    .api-config-compact .config-section:not(.country-selection-row):not(.config-row-2):not(.config-row-3) {
        flex-wrap: wrap;
    }
    
    
    .api-config-compact .config-row-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    
    .api-config-compact .config-row-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .country-selection-right {
        flex-direction: column !important;
        width: 100%;
    }
    
    .region-city-selector {
        flex-direction: column !important;
        width: 100%;
    }
    
    
    .config-row-account {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    
    .config-row-session {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    
    .config-field-half .session-type-radio {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    
    .config-field-half .session-type-cards {
        flex-direction: column;
        gap: 8px;
    }
    
    .country-selection-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .country-code-link {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }
    
    .session-type-radio {
        flex-direction: column;
        gap: 10px;
    }
    
    .session-type-cards {
        flex-direction: column;
        gap: 10px;
    }
    
    .generator-buttons {
        flex-direction: column;
    }
    
    .form-group-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group-inline label {
        min-width: auto;
    }
    
    .proxy-input-small {
        width: 100%;
    }
}

.api-config-section {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.api-config-section .config-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.api-config-section .config-label i {
    margin-right: 6px;
    color: #000000;
}

.api-link-display {
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #666;
}

.api-link-display:focus {
    outline: none;
    border-color: #000000;
}

.api-config-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.api-config-buttons .btn {
    flex: 1;
}

.country-selection-right {
    width: 100%;
}

.country-selection-right .country-dropdown-container {
    width: 100%;
    max-width: 200px;
}

@media (max-width: 768px) {
    .api-config-section {
        padding: 15px;
    }
    
    .api-config-buttons {
        flex-direction: column;
    }
    
    .country-selection-right {
        width: 100%;
    }
}

.section-header .form-select {
    min-width: 150px;
    width: auto;
    padding: 10px 36px 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.section-header .form-select:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.section-header .form-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.section-header .form-select:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.section-header .form-select option {
    padding: 12px;
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
}

.header-actions input[type="text"].form-select {
    min-width: 250px;
    width: auto;
    padding: 10px 16px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-actions input[type="text"].form-select::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.header-actions input[type="text"].form-select:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f1f3 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.header-actions input[type="text"].form-select:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.header-actions input[type="text"].form-select:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .section-header .form-select {
        min-width: 120px;
        font-size: 13px;
        padding: 8px 32px 8px 12px;
    }
    
    .header-actions input[type="text"].form-select {
        min-width: 200px;
        font-size: 13px;
        padding: 8px 12px;
    }
}

.section-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

.section-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #000000;
    font-weight: 500;
}

.section-loading-spinner .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.section-loading-spinner span {
    font-size: 14px;
    font-weight: 600;
}