:root {
    --razer-green: #44d62c;
    --razer-dark: #222222;
    --razer-darker: #1a1a1a;
    --razer-black: #111111;
    --razer-gold: #FFD700;
    --razer-silver: #C0C0C0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--razer-black);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1000px;
}

.card {
    background-color: var(--razer-dark);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 30px;
    margin-bottom: 20px;
}

.main-card {
    padding-bottom: 50px;
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
}

.logo {
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 10px;
}

h2 {
    font-size: 20px;
    font-weight: 500;
}

h3 {
    font-size: 16px;
    font-weight: 500;
}

/* Section Styles */
.section {
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--razer-darker);
}

.section-header {
    padding: 15px 20px;
    background-color: rgba(68, 214, 44, 0.2);
    border-bottom: 1px solid rgba(68, 214, 44, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    margin: 0;
    flex: 1;
}

.section-header .btn {
    margin-left: 15px;
}

.section-content {
    padding: 20px;
}

/* Form Styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1 1 250px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
}

input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: var(--razer-black);
    color: white;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: var(--razer-green);
}

/* Button Styles */
.btn {
    background-color: var(--razer-green);
    color: black;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* V2 - New logout/signout button styles */
.btn-logout-red,
.btn-signout-red {
    background: #d32f2f !important;
    color: white !important;
    font-weight: 600 !important;
    border: 2px solid #b71c1c !important;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3) !important;
}

.btn-logout-red:hover,
.btn-signout-red:hover {
    background: #f44336 !important;
    border-color: #d32f2f !important;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4) !important;
    transform: translateY(-1px);
}

.btn:hover:not(.disabled) {
    background-color: #3bc225;
}

.btn.secondary {
    background-color: transparent;
    border: 1px solid var(--razer-green);
    color: var(--razer-green);
}

.btn.secondary:hover:not(.disabled) {
    background-color: rgba(68, 214, 44, 0.1);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.button-group .btn {
    flex: 1;
    width: 100%;
    text-transform: uppercase;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--razer-green);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Country Button Styles */
.country-btn {
    transition: all 0.2s ease;
}

.country-btn:hover {
    border-color: var(--razer-green) !important;
    color: var(--razer-green) !important;
}

.country-btn.selected {
    background: rgba(68, 214, 44, 0.2) !important;
    border-color: var(--razer-green) !important;
    color: var(--razer-green) !important;
    font-weight: 500;
}

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

/* Status Messages */
.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.status.error {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
}

.status.success {
    background-color: rgba(68, 214, 44, 0.2);
    color: var(--razer-green);
}

/* Auth Data Display */
.auth-data {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
}

.data-row, .detail-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.data-label, .detail-label {
    flex: 0 0 90px;
    color: #aaa;
}

.data-value, .detail-value {
    flex: 1;
    font-weight: 500;
    word-break: break-all;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Info Cards */
.info-card {
    background-color: var(--razer-black);
    border-radius: 6px;
    overflow: hidden;
    padding: 20px;
}

.info-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 600px) {
    .info-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Balance Container */
.balance-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .balance-container {
        grid-template-columns: 1fr 1fr;
    }
}

.balance-card {
    background-color: var(--razer-black);
    border-radius: 6px;
    overflow: hidden;
}

.balance-header {
    display: flex;
    align-items: center;
    padding: 15px;
}

.balance-header.gold {
    background-color: rgba(255, 215, 0, 0.2);
}

.balance-header.silver {
    background-color: rgba(192, 192, 192, 0.2);
}

.balance-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    object-fit: contain;
}

.balance-details {
    padding: 20px;
}

.balance-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.balance-limit {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
}

.progress-container {
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background-color: var(--razer-green);
    width: 0%;
    transition: width 1s ease-in-out;
}

.expiry {
    font-size: 12px;
    color: #aaa;
    margin-top: 10px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Product Icon Placeholder (for BrightData mode - no thumbnails) */
.product-icon-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--razer-darker) 0%, var(--razer-black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(68, 214, 44, 0.2);
}

.product-icon-placeholder i {
    font-size: 32px;
    color: var(--razer-green);
    opacity: 0.6;
}

.product-item {
    background-color: var(--razer-black);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.product-details {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 12px;
    color: #aaa;
}

.hidden {
    display: none;
}

.footer {
    text-align: center;
    color: #666;
    font-size: 12px;
}

.mt-20 {
    margin-top: 20px;
}

.full-width {
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

/* Search Bar Styles */
.search-container {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: var(--razer-black);
    color: white;
    font-size: 16px;
}

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

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 20px;
}

/* Products List with Search */
.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-item {
    display: flex;
    flex-direction: column;
    background-color: var(--razer-black);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.product-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
}

/* Product Details Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: var(--razer-dark);
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 600px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sku-item {
    background-color: var(--razer-black);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sku-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sku-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.sku-price {
    color: var(--razer-gold);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.sku-buy {
    margin-top: auto;
    background-color: var(--razer-green);
    color: black;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
}

.sku-buy:hover {
    background-color: #3bc225;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--razer-green);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button-section {
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Main buttons should be consistent */
.btn {
    text-transform: uppercase;
}

/* Bot Results Styles */
.results-container {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    background-color: var(--razer-black);
    border-radius: 6px;
    padding: 15px;
    font-family: monospace;
}

.result-entry {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
}

.result-entry.success {
    border-left: 3px solid var(--razer-green);
}

.result-entry.error {
    border-left: 3px solid #ff4444;
}

.result-entry.warning {
    border-left: 3px solid #ff9800;
}

.result-entry.info {
    border-left: 3px solid #2196F3;
}

.result-entry .timestamp {
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.result-entry .message {
    color: #fff;
    font-size: 14px;
    word-break: break-all;
}

.result-entry .pin-code {
    color: var(--razer-green);
    font-size: 16px;
    font-weight: bold;
    margin-top: 5px;
    letter-spacing: 1px;
}

.batch-header {
    padding: 5px 10px;
    margin: 15px 0 10px;
    background-color: rgba(68, 214, 44, 0.1);
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    color: var(--razer-green);
}

/* Input validation styles */
input.error {
    border-color: #ff4444;
}

.input-error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
}

.input-hint {
    color: #aaa;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
}

/* Pins Fetcher Styles */
.pins-list {
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
    background-color: var(--razer-black);
    border-radius: 6px;
}

.pin-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s;
}

.pin-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.pin-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pin-title {
    font-weight: 500;
    font-size: 16px;
    color: var(--razer-green);
}

.pin-date {
    font-size: 12px;
    color: #888;
}

.pin-code {
    font-family: monospace;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 4px;
    user-select: all;
    cursor: pointer;
    letter-spacing: 1px;
}

.pin-code:hover {
    background-color: rgba(68, 214, 44, 0.1);
}

.export-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pins-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: var(--razer-black);
    border-radius: 6px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--razer-green);
}

.loading-text {
    text-align: center;
    padding: 20px;
    color: #888;
}

.no-pins {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}

/* Account Status Styles */
#account-status {
    background-color: rgba(68, 214, 44, 0.2) !important;
}

#account-status .section-header {
    background-color: transparent !important;
    border-bottom: none !important;
}

#account-status .section-header.account-header {
    background-color: transparent !important;
}

#account-status .account-info {
    background-color: transparent !important;
}

#account-status .account-details {
    background-color: transparent !important;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px !important;
    background-color: transparent !important;
}

.account-info {
    flex: 1;
    background-color: transparent;
}

.account-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
    background-color: transparent;
}

.account-email {
    font-size: 16px;
    font-weight: 500;
    color: var(--razer-gold);
}

.account-status-badge {
    background-color: var(--razer-green);
    color: black;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.account-status-badge.disconnected {
    background-color: #ff4444;
    color: white;
}

/* Logged in account status bar for other pages */
.logged-in-status {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--razer-dark), var(--razer-darker));
    border-bottom: 2px solid var(--razer-green);
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.logged-in-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logged-in-email {
    color: var(--razer-gold);
    font-weight: 500;
}

.logged-in-badge {
    background-color: var(--razer-green);
    color: black;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.logged-in-actions {
    display: flex;
    gap: 10px;
}

.status-btn {
    background: none;
    border: 1px solid var(--razer-green);
    color: var(--razer-green);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-weight: 500;
}

.status-btn:hover {
    background-color: rgba(68, 214, 44, 0.1);
}

.status-btn.logout-btn {
    border-color: #d32f2f;
    color: #d32f2f;
}

.status-btn.logout-btn:hover {
    background-color: rgba(211, 47, 47, 0.1);
    border-color: #ff5252;
    color: #ff5252;
}

/* Adjust body padding when status bar is present */
body.has-status-bar {
    padding-top: 60px;
}

body.has-status-bar .container {
    margin-top: 0;
}

/* Product Filter Styles */
.product-filters {
    margin-bottom: 20px;
    background-color: var(--razer-black);
    border-radius: 6px;
    padding: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-header h3 {
    margin: 0;
    color: var(--razer-green);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: var(--razer-darker);
    color: white;
    border: 1px solid #444;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: var(--razer-green);
    color: black;
    border-color: var(--razer-green);
}

.filter-btn.active {
    background-color: var(--razer-green);
    color: black;
    border-color: var(--razer-green);
}

.filter-btn .count {
    margin-left: 5px;
    font-weight: 600;
}

.btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Date Filter Styles */
.date-filter-container {
    margin-bottom: 20px;
    background-color: var(--razer-black);
    border-radius: 6px;
    padding: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.date-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-filter-group label {
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.date-input {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: var(--razer-darker);
    color: white;
    font-size: 14px;
    min-width: 150px;
}

.date-input:focus {
    outline: none;
    border-color: var(--razer-green);
}

.date-filter-actions {
    display: flex;
    gap: 10px;
}

/* Enhanced pin item styles */
.pin-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.pin-transaction {
    font-size: 12px;
    color: #888;
    font-family: monospace;
}

.pin-purchase-date {
    font-size: 12px;
    color: var(--razer-gold);
}

/* Product Switch List */
.product-switch-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.product-switch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--razer-black);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.product-switch-item:hover {
    border-color: var(--razer-green);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.product-switch-item.selected {
    border-color: var(--razer-green);
    background-color: rgba(68, 214, 44, 0.1);
}

.product-switch-item.selected::after {
    content: '✓ SELECTED';
    color: var(--razer-green);
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Out of Stock Styles */
.product-switch-item.out-of-stock {
    border-color: #d32f2f;
    background-color: rgba(211, 47, 47, 0.1);
    opacity: 0.7;
    cursor: not-allowed !important;
}

.product-switch-item.out-of-stock:hover {
    border-color: #d32f2f;
    transform: none;
    box-shadow: none;
}

.product-switch-item.out-of-stock .product-switch-name {
    color: #ff5252;
}

.product-switch-item.out-of-stock .product-switch-price {
    color: #ff5252;
}

.stock-badge {
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-switch-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-switch-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: white;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.product-switch-details {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #888;
}

.product-switch-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--razer-gold);
}

.product-switch-id {
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

/* Background Monitor Styles */
.background-monitor {
    background-color: var(--razer-black);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.monitor-status {
    font-size: 16px;
    font-weight: 500;
    color: var(--razer-green);
}

.monitor-progress {
    font-size: 14px;
    color: #888;
    font-family: monospace;
}

.monitor-actions {
    display: flex;
    gap: 10px;
}

.monitor-actions .btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Input with button styles */
.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button input {
    flex: 1;
}

.input-with-button .btn.small {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 50px;
}

/* Proxy Toggle Styles */
.proxy-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.proxy-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
    padding: 12px 20px;
    background-color: var(--razer-darker);
    border-radius: 8px;
    border: 2px solid rgba(68, 214, 44, 0.3);
    transition: all 0.3s ease;
}

.proxy-toggle:hover {
    background-color: rgba(68, 214, 44, 0.1);
    border-color: rgba(68, 214, 44, 0.5);
}

.proxy-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.proxy-toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #555;
    border-radius: 26px;
    transition: background-color 0.3s ease;
}

.proxy-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.proxy-toggle input[type="checkbox"]:checked + .proxy-toggle-slider {
    background-color: var(--razer-green);
}

.proxy-toggle input[type="checkbox"]:checked + .proxy-toggle-slider::before {
    transform: translateX(24px);
}

.proxy-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.proxy-toggle-label i {
    color: var(--razer-green);
    font-size: 16px;
}

.proxy-toggle input[type="checkbox"]:not(:checked) + .proxy-toggle-slider + .proxy-toggle-label i {
    color: #888;
}

/* Batch Process Controls */
.batch-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--razer-darker);
    border-radius: 8px;
    border: 2px solid rgba(68, 214, 44, 0.3);
}

.batch-controls .control-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.batch-controls label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    min-width: 180px;
}

.batch-controls input[type="number"] {
    flex: 1;
    max-width: 120px;
    padding: 8px 12px;
    background-color: var(--razer-dark);
    border: 1px solid rgba(68, 214, 44, 0.3);
    border-radius: 4px;
    color: white;
    font-size: 14px;
}

.batch-controls input[type="number"]:focus {
    outline: none;
    border-color: var(--razer-green);
    box-shadow: 0 0 0 2px rgba(68, 214, 44, 0.2);
}

.batch-info {
    padding: 10px 15px;
    background-color: rgba(68, 214, 44, 0.1);
    border-left: 3px solid var(--razer-green);
    border-radius: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.batch-info strong {
    color: var(--razer-green);
}

/* Proxy Controls Enhanced */
.proxy-controls {
    flex-direction: column;
}

.proxy-toggle {
    width: 100%;
    justify-content: center;
}

/* ============================================
   ENHANCED RADIO BUTTON & TOGGLE STYLES
   ============================================ */

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 28px;
    border: 2px solid #555;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--razer-green);
    border-color: var(--razer-green);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch:hover .toggle-slider {
    border-color: var(--razer-green);
}

/* Enhanced Radio Button Styles */
.radio-option,
.proxy-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(26, 26, 26, 0.8);
    transition: all 0.2s ease;
    user-select: none;
}

.radio-option:hover,
.proxy-option:hover {
    border-color: rgba(68, 214, 44, 0.5);
    background: rgba(68, 214, 44, 0.05);
}

.radio-option.selected,
.proxy-option.selected,
.radio-option:has(input:checked),
.proxy-option:has(input:checked) {
    border-color: var(--razer-green);
    background: rgba(68, 214, 44, 0.15);
    box-shadow: 0 0 10px rgba(68, 214, 44, 0.2);
}

/* Custom Radio Input */
.radio-option input[type="radio"],
.proxy-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked,
.proxy-option input[type="radio"]:checked {
    border-color: var(--razer-green);
    background: transparent;
}

.radio-option input[type="radio"]:checked::after,
.proxy-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--razer-green);
    border-radius: 50%;
}

.radio-option input[type="radio"]:hover,
.proxy-option input[type="radio"]:hover {
    border-color: var(--razer-green);
}

/* Radio option label text */
.radio-option span,
.proxy-option span {
    font-size: 14px;
    color: #ddd;
    font-weight: 500;
}

.radio-option.selected span,
.proxy-option.selected span,
.radio-option:has(input:checked) span,
.proxy-option:has(input:checked) span {
    color: #fff;
}

/* Disabled state */
.radio-option.disabled,
.proxy-option.disabled,
.radio-option:has(input:disabled),
.proxy-option:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Country Selection Button Styles */
.country-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid #444;
    border-radius: 8px;
    background: rgba(26, 26, 26, 0.8);
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.country-btn:hover {
    border-color: rgba(68, 214, 44, 0.5);
    background: rgba(68, 214, 44, 0.05);
    color: #fff;
}

.country-btn.selected {
    border-color: var(--razer-green);
    background: rgba(68, 214, 44, 0.2);
    color: var(--razer-green);
    box-shadow: 0 0 10px rgba(68, 214, 44, 0.2);
}

/* Proxy Method Options Container */
.proxy-method-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Country Options Container */
.country-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Results Box */
.results-box {
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--razer-black);
    border-radius: 6px;
    padding: 15px;
    font-family: monospace;
    -webkit-overflow-scrolling: touch;
}

/* Info Row */
.info-row {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

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

.info-row .label {
    color: #888;
    min-width: 100px;
    font-size: 14px;
}

.info-row .value {
    flex: 1;
    color: white;
    font-weight: 500;
    word-break: break-word;
}

/* Product Info */
.product-info {
    background-color: var(--razer-black);
    border-radius: 6px;
    overflow: hidden;
}

/* Account Info */
.account-info {
    background-color: var(--razer-black);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and larger screens */
@media (min-width: 600px) {
    .form-group {
        flex: 1 1 250px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .products-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    body.has-status-bar {
        padding-top: 60px;
    }
    
    .product-switch-item {
        flex-wrap: nowrap;
    }
    
    .product-switch-info {
        min-width: 200px;
    }
}

/* Mobile screens */
@media (max-width: 600px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }
    
    .container {
        padding: 0 5px;
    }

    .card {
        padding: 15px;
        border-radius: 6px;
    }

    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }

    .logo {
        height: 60px;
    }

    /* Status bar mobile */
    .logged-in-status {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 10px;
    }

    .logged-in-info {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .logged-in-actions {
        width: 100%;
        justify-content: space-between;
    }

    .status-btn {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
    }

    body.has-status-bar {
        padding-top: 100px;
    }

    /* Section header mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }

    .section-header .btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 16px;
    }

    /* Form elements mobile */
    .form-group {
        flex: 1 1 100%;
    }

    .form-row {
        gap: 10px;
    }

    input {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Button mobile */
    .btn {
        padding: 12px 15px;
        font-size: 14px;
        width: 100%;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        min-width: auto;
    }

    /* Bot controls mobile */
    .bot-controls {
        flex-direction: column;
        gap: 10px;
    }

    .bot-controls .btn {
        width: 100%;
    }

    /* Filter row mobile */
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }

    .date-filter-group {
        width: 100%;
        flex: 1 1 100%;
    }

    .date-input {
        width: 100%;
    }

    .date-filter-actions {
        width: 100%;
        flex: 1 1 100%;
        flex-direction: column;
    }
    
    .date-filter-actions .btn {
        width: 100%;
    }

    /* Export container mobile */
    .export-container {
        flex-direction: column;
    }

    .export-container .btn {
        width: 100%;
    }

    /* PIN stats mobile */
    .pins-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .stat-item {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-bottom: 1px solid #333;
        padding-bottom: 8px;
        margin-bottom: 5px;
    }

    .stat-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* PIN header mobile */
    .pin-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .pin-code {
        font-size: 14px;
        padding: 10px;
        word-break: break-all;
        text-align: center;
    }

    /* Modal mobile */
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .modal-container {
        max-height: 95vh;
        width: 100%;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-body {
        padding: 12px;
    }

    /* Batch controls mobile */
    .batch-controls .control-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .batch-controls label {
        min-width: auto;
        width: 100%;
    }

    .batch-controls input[type="number"] {
        width: 100%;
        max-width: none;
    }

    /* Product switch mobile */
    .product-switch-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product-switch-info {
        width: 100%;
        min-width: auto;
    }

    .product-switch-name {
        font-size: 14px;
    }

    .product-switch-price {
        font-size: 14px;
    }

    .product-switch-details {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Input with button mobile */
    .input-with-button {
        flex-direction: column;
    }

    .input-with-button input {
        width: 100%;
    }

    .input-with-button .btn.small {
        width: 100%;
        min-width: auto;
    }

    /* Proxy toggle mobile */
    .proxy-toggle {
        padding: 10px 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .proxy-toggle-label {
        font-size: 13px;
    }
    
    /* Radio buttons and country buttons mobile */
    .proxy-method-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-option,
    .proxy-option {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
    }
    
    .country-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .country-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    /* Products grid mobile */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .products-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Product item mobile */
    .product-item {
        height: auto;
    }

    .product-details {
        padding: 10px;
    }

    .product-title {
        font-size: 13px;
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* SKU item mobile */
    .sku-item {
        padding: 12px;
    }

    .sku-name {
        font-size: 14px;
    }

    .sku-price {
        font-size: 16px;
    }

    .sku-buy {
        padding: 12px;
        font-size: 14px;
    }

    /* Monitor mobile */
    .monitor-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .monitor-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .monitor-actions .btn.small {
        flex: 1;
        min-width: 120px;
    }

    /* Background monitor mobile */
    .background-monitor {
        padding: 12px;
    }

    /* Results container mobile */
    .results-container {
        max-height: 250px;
        padding: 10px;
    }

    .results-box {
        max-height: 300px;
        padding: 10px;
    }

    /* Info row mobile */
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .info-row .label {
        min-width: auto;
        font-size: 12px;
    }

    .info-row .value {
        font-size: 14px;
    }

    /* Balance mobile */
    .balance-value {
        font-size: 24px;
    }

    /* Filter buttons mobile */
    .filter-buttons {
        flex-wrap: wrap;
    }

    .filter-btn {
        flex: 1 1 auto;
        min-width: 80px;
        text-align: center;
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Account header mobile */
    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .account-details {
        flex-wrap: wrap;
    }

    /* Card header mobile */
    .card-header {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .card-header .btn {
        width: 100%;
    }

    /* Back button mobile */
    .back-btn {
        width: 100%;
        justify-content: center;
    }

    /* Search container mobile */
    .search-container {
        margin-bottom: 20px;
    }

    .search-input {
        padding: 12px 15px 12px 40px;
    }

    /* Data rows mobile */
    .data-row, .detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .data-label, .detail-label {
        flex: none;
    }

    .truncate {
        max-width: 100%;
    }

    /* Section content mobile */
    .section-content {
        padding: 15px;
    }

    /* PIN item mobile */
    .pin-item {
        padding: 12px;
    }

    .pin-title {
        font-size: 14px;
    }

    /* Input with 2FA button mobile */
    .input-with-2fa-btn {
        flex-direction: column;
    }
    
    .input-with-2fa-btn input {
        width: 100%;
    }
    
    .input-with-2fa-btn button {
        width: 100%;
    }

    /* PIN modal mobile */
    .pin-modal {
        width: 95%;
        padding: 20px;
    }
    
    .pin-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .pin-digit {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }
    
    .pin-input-container {
        gap: 8px;
    }
    
    .pin-modal-actions {
        flex-direction: column;
    }
    
    .pin-modal-actions button {
        width: 100%;
    }
}