/* Datacenter Proxies Page Styles */

.dc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dc-page-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dc-page-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dc-page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.15;
}

.dc-page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 6px 0 0 0;
    font-weight: 400;
}

.dc-purchase-btn {
    height: 40px;
    padding: 0 14px 0 12px;
    border-radius: 10px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.dc-purchase-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.dc-purchase-btn:active {
    transform: translateY(1px);
}

.dc-purchase-plus {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 768px) {
    .dc-page-header {
        align-items: flex-start;
    }
    .dc-page-title {
        font-size: 24px;
    }
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Summary Cards */
.proxies-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s ease;
}

[data-theme="dark"] .summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.summary-card:nth-child(2) {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.3);
}

[data-theme="dark"] .summary-card:nth-child(2) {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.4);
}

.summary-card:nth-child(3) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 20px rgba(245, 87, 108, 0.3);
}

[data-theme="dark"] .summary-card:nth-child(3) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.summary-card-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.summary-card-content {
    flex: 1;
}

.summary-card-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.summary-card-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

/* Toolbar */
.proxies-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    min-width: 250px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-icon {
    margin-right: 6px;
}

/* Proxies List */
.proxies-list-container {
    min-height: 400px;
}

/* === Datacenter order cards (match screenshot layout) === */
.dc-orders-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .dc-orders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dc-orders-grid {
        grid-template-columns: 1fr;
    }
}

.dc-order-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.dc-order-card {
    border-left: 4px solid #2563eb;
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dc-order-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dc-order-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.dc-order-created {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.dc-days-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #374151;
}

.dc-days-badge--warn {
    border-color: #fb923c;
    background: #fff7ed;
    color: #c2410c;
}

.dc-days-badge--yellow {
    border-color: #facc15;
    background: #fefce8;
    color: #a16207;
}

.dc-days-badge--orange {
    border-color: #fb923c;
    background: #fff7ed;
    color: #c2410c;
}

.dc-days-badge--expired {
    border-color: #ef4444;
    background: #fef2f2;
    color: #b91c1c;
}

.dc-days-badge--ok {
    border-color: #e5e7eb;
    background: #f3f4f6;
    color: #374151;
}

.dc-order-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
    margin-bottom: 12px;
}

.dc-meta-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.dc-meta-value {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.dc-bandwidth {
    margin-top: 6px;
    margin-bottom: 12px;
}

.dc-bandwidth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.dc-bandwidth-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.dc-bandwidth-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.dc-bandwidth-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.dc-bandwidth-fill {
    height: 100%;
    background: rgba(37, 99, 235, 0.30);
    border-radius: 999px;
}

.dc-expires {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.dc-expires-icon {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-expires-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-order-footer {
    gap: 10px;
    margin-top: auto;
}

/* Disabled item in dropdown (Change Password placeholder) */
.subscription-settings-dropdown-item.is-disabled,
.subscription-settings-dropdown-item:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Datacenter dropdown icons */
.subscription-settings-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-dd-icon {
    width: 18px;
    height: 18px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dc-dd-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 22px;
}

/* === Datacenter Generate Page (order details) === */
.dc-gen-page {
    padding: 4px 0 24px;
}

.dc-gen-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    min-height: 260px;
}

.dc-gen-loading-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.dc-gen-top-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

@media (max-width: 1100px) {
    .dc-gen-top-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dc-gen-top-cards {
        grid-template-columns: 1fr;
    }
}

.dc-gen-stat {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 16px;
}

.dc-gen-stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
}

.dc-gen-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.dc-gen-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.dc-gen-stat-value--big {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.dc-gen-mini-btn {
    height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dc-gen-mini-btn:hover {
    background: #dbeafe;
}

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

.dc-gen-mini-btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.dc-gen-mini-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.dc-gen-mini-btn-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-gen-mini-btn-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-gen-mini-icon {
    width: 36px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-gen-mini-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-gen-ring {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.dc-gen-ring svg {
    width: 44px;
    height: 44px;
}

.dc-gen-ring-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 3.2;
}

.dc-gen-ring-fg {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 3.2;
    stroke-linecap: round;
}

.dc-gen-ring-text {
    font-size: 7px;
    font-weight: 700;
    fill: #64748b;
    text-anchor: middle;
}

.dc-gen-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.9fr;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 16px;
}

@media (max-width: 1100px) {
    .dc-gen-main-grid {
        grid-template-columns: 1fr;
    }
}

.dc-gen-cols-head {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.9fr;
    gap: 14px;
    margin: 6px 0 10px;
    text-align: center;
}

@media (max-width: 1100px) {
    .dc-gen-cols-head {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 8px;
        margin: 10px 0 8px;
    }
}

.dc-gen-col-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.dc-gen-col-subtitle {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
}

.dc-gen-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dc-gen-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dc-gen-label {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.dc-gen-input,
.dc-gen-select {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0 14px;
    font-size: 14px;
    color: var(--text-primary);
}

.dc-country-select {
    position: relative;
}

.dc-country-trigger {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.dc-country-caret {
    color: #94a3b8;
    font-size: 16px;
    transform: translateY(-1px);
}

.dc-country-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    z-index: 5000;
}

.dc-country-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
}

.dc-country-search-icon {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-country-search-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-country-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #0f172a;
}

.dc-country-options {
    max-height: 240px;
    overflow: auto;
    padding: 6px;
}

.dc-country-option {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
}

.dc-country-option:hover {
    background: #f8fafc;
}

.dc-country-check {
    width: 18px;
    text-align: center;
    color: #0f172a;
    font-weight: 700;
}

.dc-country-flag {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.dc-country-flag--worldwide {
    font-size: 14px;
    line-height: 18px;
}

.dc-country-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.dc-country-empty {
    padding: 12px;
    color: #64748b;
    font-size: 13px;
}

.dc-gen-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dc-gen-row-2 > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 420px) {
    .dc-gen-row-2 {
        grid-template-columns: 1fr;
    }
}

.dc-gen-generate-btn {
    margin-top: 6px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.dc-gen-generate-btn:hover {
    background: #1d4ed8;
}

.dc-gen-textarea {
    margin-top: 12px;
    width: 100%;
    min-height: 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 12px;
    font-size: 12px;
    resize: none;
    color: var(--text-primary);
    flex: 1;
}

.dc-gen-copy-btn {
    margin-top: 12px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dc-gen-output-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.dc-gen-output-actions .dc-gen-copy-btn {
    margin-top: 0;
    width: 100%;
}

.dc-gen-check-btn {
    height: 38px;
    border-radius: 10px;
    border: none;
    background: #10b981;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dc-gen-check-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-gen-check-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    border: 1px solid #cbd5e1;
    cursor: not-allowed;
}

.dc-gen-copy-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-gen-copy-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    border: 1px solid #cbd5e1;
    cursor: not-allowed;
}

.dc-gen-info {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dc-gen-info-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
}

.dc-gen-info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
}

.dc-gen-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.dc-gen-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-gen-info-action {
    width: 34px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.dc-gen-info-action svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-gen-info-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dc-gen-table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
}

.dc-ipdist-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.dc-proxy-table-wrap {
    margin-top: 16px;
}

/* === IP Distribution (accordion) === */
.dc-ipdist-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding: 14px 16px;
    background: var(--card-bg);
}

.dc-ipdist-left{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.dc-ipdist-title{
    display:flex;
    align-items:center;
    gap:10px;
    border:0;
    background:transparent;
    font-weight:600;
    font-size: 14px;
    color: var(--text-primary);
    cursor:pointer;
    padding:0;
    min-width: 0;
    flex: 1;
}

.dc-ipdist-title .dc-gen-pill{
    margin-left: 2px;
}

.dc-ipdist-globe{
    width: 18px;
    height: 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    color: var(--text-primary);
}
.dc-ipdist-globe svg{
    width:18px;
    height:18px;
    max-width:18px;
    max-height:18px;
    fill:none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-ipdist-chevron{
    margin-left: auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 20px;
    height: 20px;
    flex-shrink:0;
    color: #64748b;
    transition: transform .18s ease;
}
.dc-ipdist-chevron svg{
    width:20px;
    height:20px;
    max-width:20px;
    max-height:20px;
    fill:none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dc-ipdist-header.is-collapsed .dc-ipdist-chevron{
    transform: rotate(-90deg);
}

.dc-ipdist-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
}

.dc-ipdist-body{
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

/* Allocation summary card */
.dc-alloc-card{
    background:#eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 16px;
}
.dc-alloc-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}
.dc-alloc-left{ min-width:0; }
.dc-alloc-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:600;
    font-size: 18px;
    color:#0f172a;
}
.dc-alloc-icon{
    width: 18px;
    height: 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.dc-alloc-icon svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:#2563eb;
    stroke-width:2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dc-alloc-sub{
    margin-top: 6px;
    font-size: 13px;
    color:#475569;
}
.dc-alloc-right{
    text-align:right;
    flex-shrink:0;
}
.dc-alloc-pct{
    font-size: 34px;
    font-weight: 700;
    color:#16a34a;
    line-height:1;
}
.dc-alloc-status{
    margin-top: 4px;
    font-size: 13px;
    color:#475569;
}
.dc-alloc-bar{
    margin-top: 14px;
    height: 10px;
    background: rgba(37,99,235,0.18);
    border-radius: 999px;
    overflow:hidden;
}
.dc-alloc-fill{
    height: 100%;
    background: #16a34a;
    border-radius: 999px;
    width:0%;
}

/* Country cards grid */
.dc-country-cards{
    margin-top: 14px;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.dc-country-card{
    display:flex;
    align-items:center;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    background:#ffffff;
}
.dc-country-card-flag{
    width: 58px;
    height: 42px;
    border-radius: 12px;
    background:#e2e8f0;
    display:flex;
    align-items:center;
    justify-content:center;
    border: 1px solid #cbd5e1;
    overflow:hidden;
    flex-shrink:0;
}
.dc-country-card-flag .fi{
    font-size: 26px;
    line-height: 1;
}
.dc-country-card-main{
    min-width: 0;
    flex:1;
}
.dc-country-card-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.dc-country-card-name{
    font-weight: 600;
    font-size: 14px;
    color:#0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-country-card-count{
    font-weight: 600;
    font-size: 12px;
    color:#2563eb;
    background:#eef2ff;
    border:1px solid #dbeafe;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink:0;
}
.dc-country-card-sub{
    margin-top: 6px;
    font-size: 12px;
    color:#64748b;
}
.dc-country-card-bar{
    margin-top: 6px;
    height: 6px;
    border-radius: 999px;
    background:#dbeafe;
    overflow:hidden;
}
.dc-country-card-fill{
    height: 100%;
    background:#2563eb;
    width:0%;
    border-radius: 999px;
}
.dc-country-card-pct{
    font-size: 13px;
    color:#0f172a;
    font-weight:600;
    flex-shrink:0;
}

/* Toolbar inside accordion body should align with new padding */
.dc-ipdist-body .dc-gen-table-toolbar{
    margin-top: 14px;
    margin-bottom: 10px;
}

.dc-gen-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dc-gen-table-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dc-gen-pill {
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    padding: 3px 8px;
    border-radius: 999px;
}

.dc-gen-table-actions {
    display: inline-flex;
    gap: 10px;
}

.dc-gen-table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dc-gen-select--sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.dc-table-country-select {
    position: relative;
}

.dc-table-country-trigger {
    height: 32px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #0f172a;
    min-width: 220px;
}

.dc-table-country-text {
    font-weight: 600;
}

.dc-table-country-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 8px;
    min-width: 24px;
    text-align: center;
}

.dc-table-country-count--pill {
    margin-left: 4px;
}

.dc-table-country-caret {
    margin-left: auto;
    color: #94a3b8;
    font-size: 14px;
}

.dc-table-country-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    z-index: 3000;
}

.dc-table-country-options {
    max-height: 240px;
    overflow: auto;
    padding: 6px;
}

.dc-table-country-option {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    color: #0f172a;
}

.dc-table-country-name {
    flex: 1;
}

.dc-table-country-option:hover {
    background: #f8fafc;
}

.dc-table-country-option.is-selected {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.dc-table-country-option.is-selected .dc-table-country-count {
    color: #1d4ed8;
    background: #dbeafe;
}

.dc-table-country-flag {
    width: 18px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.dc-table-country-flag--world {
    font-size: 13px;
    line-height: 13px;
}

/* Loading skeletons (Datacenter/ISP/IPv6) */
@keyframes dcShimmer {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.dc-loading {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 300px;
}

.dc-loading-card {
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.dc-loading-skeleton {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
}

.dc-loading-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: dcShimmer 1.2s ease-in-out infinite;
}

.dc-loading-line {
    height: 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.dc-loading-line--title {
    height: 16px;
    width: 48%;
}

.dc-loading-line--subtitle {
    width: 32%;
}

.dc-loading-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

@media (max-width: 900px) {
    .dc-loading-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .dc-loading-metrics {
        grid-template-columns: minmax(0, 1fr);
    }
}

.dc-loading-line--metric {
    height: 10px;
    width: 100%;
    margin-bottom: 0;
}

.dc-loading-progress {
    height: 8px;
    border-radius: 999px;
    margin-top: 6px;
}

.dc-loading-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    justify-content: center;
    padding-top: 6px;
}

.dc-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

[data-theme="dark"] .dc-loading {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-color: #1f2937;
}

[data-theme="dark"] .dc-loading-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .dc-loading-skeleton {
    background: #1f2937;
}

[data-theme="dark"] .dc-loading-skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

[data-theme="dark"] .dc-loading-spinner {
    border-color: #1f2937;
    border-top-color: var(--primary-color);
}

.dc-edit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.dc-edit-modal {
    width: min(720px, 92vw);
    max-height: 85vh;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dc-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
}

.dc-edit-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dc-edit-title {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}

.dc-edit-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #64748b;
}

.dc-edit-body {
    padding: 16px 18px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dc-edit-summary {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.dc-edit-warning {
    font-size: 12px;
    color: #dc2626;
    display: none;
}

.dc-edit-list {
    display: grid;
    gap: 10px;
}

.dc-edit-row {
    display: grid;
    grid-template-columns: 24px 1fr 120px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.dc-edit-flag {
    width: 18px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dc-edit-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.dc-edit-country-input {
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0 10px;
    font-size: 13px;
}

.dc-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid #eef2f7;
}

.dc-plan-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5200;
    padding: 24px;
}

.dc-plan-modal {
    width: min(560px, 92vw);
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
}

.dc-plan-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-plan-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.dc-plan-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #64748b;
}

.dc-plan-modal-body {
    display: grid;
    gap: 14px;
}

.dc-plan-option-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: center;
}

.dc-plan-option-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eef2ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dc-plan-option-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

.dc-plan-option-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.dc-plan-modal-footer {
    display: flex;
    justify-content: flex-end;
}

.dc-plan-page {
    width: min(1000px, 96vw);
    max-height: 90vh;
    overflow: auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dc-plan-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dc-plan-back {
    border: none;
    background: transparent;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
}

.dc-plan-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
}

.dc-plan-badge {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
}

.dc-plan-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 18px;
}

.dc-plan-section {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.dc-plan-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.dc-plan-period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.dc-plan-period-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
}

.dc-plan-period-card.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.dc-plan-period-card.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dc-plan-period-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.dc-plan-period-price {
    font-weight: 700;
    color: #2563eb;
}

.dc-plan-period-note {
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.dc-plan-summary {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
}

.dc-plan-summary-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.dc-plan-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: #334155;
}

.dc-plan-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
    margin-top: 12px;
    margin-bottom: 12px;
}

.dc-plan-primary-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
}

.dc-plan-primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dc-plan-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.dc-plan-locations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dc-plan-locations-total {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.dc-plan-locations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.dc-plan-locations-list.is-disabled {
    opacity: 0.6;
}

.dc-plan-location-row {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dc-plan-location-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-plan-location-flag {
    width: 18px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dc-plan-location-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.dc-plan-location-available {
    font-size: 12px;
    color: #94a3b8;
}

.dc-plan-location-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dc-plan-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    cursor: pointer;
}

.dc-plan-qty-input {
    width: 46px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-align: center;
    font-size: 12px;
}

.dc-plan-location-warning {
    font-size: 12px;
    color: #dc2626;
    margin-top: 8px;
    display: none;
}

.dc-plan-location-empty {
    font-size: 12px;
    color: #94a3b8;
    padding: 8px 0;
}

.dc-plan-select {
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0 10px;
    font-size: 13px;
}

.dc-plan-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dc-plan-note {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

.dc-plan-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}

.dc-plan-feature:last-child {
    border-bottom: none;
}

.dc-plan-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.dc-plan-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dc-plan-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5f5;
    border-radius: 999px;
    transition: 0.2s;
}

.dc-plan-slider:before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}

.dc-plan-switch input:checked + .dc-plan-slider {
    background-color: #2563eb;
}

.dc-plan-switch input:checked + .dc-plan-slider:before {
    transform: translateX(20px);
}

@media (max-width: 900px) {
    .dc-plan-layout {
        grid-template-columns: 1fr;
    }
}

.dc-gen-table-scroll {
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.dc-gen-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 740px;
}

.dc-table-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dc-table-flag {
    width: 18px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.dc-col-copy {
    text-align: right;
}

.dc-gen-mini-btn--copy {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 8px;
}

.dc-gen-table th,
.dc-gen-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
    color: #0f172a;
    text-align: left;
    white-space: nowrap;
}

.dc-proxy-address {
    font-weight: 600;
    color: #0f172a;
}

.dc-proxy-real-ip {
    margin-left: 8px;
    font-size: 11px;
    color: #64748b;
}

.dc-auth-ip .dc-col-username,
.dc-auth-ip .dc-col-password {
    display: none;
}

.dc-gen-table th {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 700;
    background: #f8fafc;
}

.dc-gen-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 12px;
}

.dc-gen-page-btn {
    width: 30px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
}

.dc-gen-page-btn.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
}

.dc-gen-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dc-gen-page-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    padding: 0 10px;
}

/* === Datacenter Whitelist Modal === */
.dc-wl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 6000;
}

.dc-wl-modal {
    width: min(720px, 92vw);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.dc-wl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
}

.dc-wl-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.dc-wl-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.dc-wl-close:hover {
    background: #f8fafc;
}

.dc-wl-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dc-wl-yourip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 12px;
}

.dc-wl-yourip-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.dc-wl-yourip-value {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
}

.dc-wl-copy {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dc-wl-copy svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-wl-copy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dc-wl-input {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0 12px;
    font-size: 13px;
    color: #0f172a;
}

.dc-wl-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-wl-input-row .dc-wl-input {
    flex: 1;
    min-width: 0;
}

.dc-wl-remove {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dc-wl-remove:hover {
    background: #f8fafc;
    color: #64748b;
}

.dc-wl-remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dc-wl-remove svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-wl-add {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.dc-wl-plus {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-wl-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dc-wl-footer {
    padding: 16px 20px;
    border-top: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dc-wl-footer-right {
    display: inline-flex;
    gap: 12px;
}

.dc-wl-btn {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}

.dc-wl-btn-secondary {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #0f172a;
}

.dc-wl-btn-secondary:hover {
    background: #f8fafc;
}

.dc-wl-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: #0f172a;
}

.dc-wl-btn-ghost:hover {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.dc-wl-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.dc-wl-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

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

.dc-help-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 26px;
    text-align: center;
}

.dc-help-card h3 {
    margin: 0 0 14px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.dc-help-card p {
    margin: 0 auto 18px auto;
    max-width: 520px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
}

.dc-help-btn {
    height: 38px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dc-help-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

@media (max-width: 900px) {
    .dc-help-grid {
        grid-template-columns: 1fr;
    }
}

.proxy-order-group {
    margin-bottom: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.proxy-order-header {
    padding: 24px;
    background: var(--card-bg);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.proxy-order-header:hover {
    background: var(--bg-secondary);
}

[data-theme="dark"] .proxy-order-header {
    background: var(--card-bg, #111827);
}

[data-theme="dark"] .proxy-order-header:hover {
    background: var(--bg-secondary, #1f2937);
}

.order-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.expand-icon {
    font-size: 14px;
    color: var(--text-secondary);
    transition: transform 0.2s;
    min-width: 20px;
    text-align: center;
}

.order-info > div {
    flex: 1;
}

.order-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.order-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.order-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #e53935 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 51, 73, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

.proxies-grid-container {
    padding: 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 10000px;
    }
}

.proxies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 24px;
}

/* Proxy Card */
.proxy-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.proxy-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

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

.proxy-country {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-flag {
    font-size: 24px;
}

.country-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.proxy-copy-btn {
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.proxy-copy-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.proxy-copy-btn.copied {
    background: var(--success-color);
}

.proxy-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proxy-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.proxy-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.proxy-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

.gateway-value {
    color: var(--primary-color);
}

.username-value {
    color: #8b5cf6;
}

.password-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-masked {
    color: var(--text-secondary);
}

.password-visible {
    color: var(--danger-color);
}

.toggle-password-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toggle-password-btn:hover {
    opacity: 1;
}

.traffic-value {
    color: var(--success-color);
    font-weight: 600;
}

.quota-value {
    color: var(--text-secondary);
    font-size: 13px;
}

.quota-value.quota-warning {
    color: #f5576c;
    font-weight: 600;
}

.proxy-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.proxy-format-selector {
    width: 100%;
}

.format-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

.format-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state.error {
    color: var(--danger-color);
}

.empty-state p {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .proxies-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .proxies-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }
    
    .search-input {
        min-width: 100%;
    }
    
    .proxies-grid {
        grid-template-columns: 1fr;
    }
    
    .proxy-order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-actions {
        flex-wrap: wrap !important;
        width: 100%;
        gap: 8px !important;
    }
    
    .order-actions button {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: calc(50% - 4px) !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
    
    .order-stats {
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
    }
    
    .stat-item {
        font-size: 12px;
    }
}

/* Country Flag Tooltip Styles */
.country-flag-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.country-flag-tooltip:hover .country-flag-tooltip-text {
    opacity: 1 !important;
    visibility: visible;
}

.country-flag-tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.country-flag-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.85);
}
