/* SnapGrids Client Area Styling */

/* ===================================
   PAYMENT MODAL & CHECKOUT STYLES
   =================================== */

/* Payment Card Container */
.card {
    background: rgba(26, 31, 58, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 20px;
}

.card-body {
    padding: 30px !important;
}

.card-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

/* Invoice Summary Card */
.invoice-summary {
    background: transparent !important;
}

.invoice-summary h2 {
    color: #00d4ff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.invoice-summary-table {
    margin-bottom: 20px;
}

.invoice-summary-table table {
    width: 100%;
    border-collapse: collapse;
    color: #ffffff !important;
}

.invoice-summary-table table td {
    padding: 12px 8px !important;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3) !important;
    color: #ffffff !important;
}

.invoice-summary-table table td strong {
    color: #00d4ff !important;
}

.invoice-summary-table .total-row {
    font-weight: 600 !important;
    color: #8b93a7 !important;
}

/* Balance Due Alert */
.invoice-summary .alert-success {
    background: rgba(0, 255, 136, 0.15) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    color: #00ff88 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-weight: 600 !important;
}

.invoice-summary .alert-success strong {
    color: #00ff88 !important;
}

/* Payment Form */
.cc-payment-form {
    background: transparent;
}

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

.cc-payment-form label {
    color: #8b93a7 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.cc-payment-form .control-label {
    color: #8b93a7 !important;
}

.cc-payment-form .form-control,
.cc-payment-form input[type="text"],
.cc-payment-form input[type="number"],
.cc-payment-form input[type="tel"],
.cc-payment-form select {
    background: rgba(15, 18, 35, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.cc-payment-form .form-control:focus,
.cc-payment-form input[type="text"]:focus,
.cc-payment-form input[type="number"]:focus,
.cc-payment-form input[type="tel"]:focus,
.cc-payment-form select:focus {
    outline: none !important;
    border-color: #00d4ff !important;
    background: rgba(15, 18, 35, 1) !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
}

.cc-payment-form .form-control::placeholder,
.cc-payment-form input::placeholder {
    color: #6c7b95 !important;
}

/* Select Dropdowns in Payment Form */
.cc-payment-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
}

.cc-payment-form select option {
    background: #1a1f3a !important;
    color: #ffffff !important;
    padding: 8px !important;
}

/* Submit Payment Button */
.btn-primary,
#btnSubmit,
button[type="submit"] {
    background: linear-gradient(135deg, #00d4ff, #00b8d4) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 14px 40px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-size: 16px !important;
    text-transform: none !important;
}

.btn-primary:hover,
#btnSubmit:hover,
button[type="submit"]:hover {
    background: linear-gradient(135deg, #00b8d4, #0097a7) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4) !important;
    color: #ffffff !important;
}

.btn-primary:disabled,
#btnSubmit:disabled,
button[type="submit"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Error Messages */
.alert-danger,
.gateway-errors {
    background: rgba(255, 59, 48, 0.15) !important;
    border: 1px solid rgba(255, 59, 48, 0.3) !important;
    color: #ff6b6b !important;
    border-radius: 8px !important;
    padding: 16px !important;
}

/* Security Notice */
.alert-warning {
    background: rgba(255, 193, 7, 0.15) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    color: #ffc107 !important;
    border-radius: 8px !important;
    padding: 16px !important;
}

.alert-warning i {
    color: #ffc107 !important;
}

/* Payment Gateway Logo/Branding */
#paymentGatewayInput img {
    max-height: 30px;
    margin: 10px 0;
}

/* Stripe Branding */
.powered-by-stripe,
a[href*="stripe"] {
    color: #8b93a7 !important;
    font-size: 12px !important;
    text-decoration: none !important;
}

/* Form Row Styling */
.form-group.row {
    margin-bottom: 20px;
}

.form-group.row label {
    padding-top: 12px;
}

/* Radio and Checkbox Inputs */
input[type="radio"],
input[type="checkbox"] {
    accent-color: #00d4ff !important;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

/* Table Styling for Payment Info */
.table {
    color: #ffffff !important;
}

.table thead {
    background: rgba(0, 0, 0, 0.2) !important;
}

.table th {
    color: #00d4ff !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3) !important;
    padding: 12px !important;
}

.table td {
    border-bottom: 1px solid rgba(71, 85, 105, 0.2) !important;
    padding: 12px !important;
}

.table-condensed td {
    padding: 10px 8px !important;
}

/* Text Center Utilities */
.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

/* Margin Bottom Utilities */
.mb-2 {
    margin-bottom: 1rem !important;
}

.m-0 {
    margin: 0 !important;
}

/* Hidden Class */
.w-hidden {
    display: none !important;
}

/* Payment Modal Container */
#frmPayment {
    background: transparent;
}

#frmPayment .row {
    margin: 0 -15px;
}

#frmPayment .col-md-7,
#frmPayment .col-md-5 {
    padding: 0 15px;
}

/* Payment Method Select Wrapper */
#paymentGatewayInput {
    background: transparent;
}

/* Submit Container */
.submit-container {
    margin-top: 30px;
}

/* Responsive Design for Payment Modal */
@media (max-width: 768px) {
    .card-body {
        padding: 20px !important;
    }

    #frmPayment .col-md-7,
    #frmPayment .col-md-5 {
        margin-bottom: 20px;
    }

    .btn-primary,
    #btnSubmit,
    button[type="submit"] {
        width: 100%;
        padding: 16px 20px !important;
    }
}

/* 3D Secure iFrame */
.auth3d-area {
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 8px;
    background: rgba(26, 31, 58, 0.6);
}

/* Payment Checkmark Icon */
.payment-success-icon {
    color: #00ff88 !important;
    font-size: 48px;
}

/* Loading Spinner */
.spinner-border {
    color: #00d4ff !important;
}

/* Input Group for CVV/Expiry */
.input-group .form-control {
    background: rgba(15, 18, 35, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    color: #ffffff !important;
}

.input-group-text {
    background: rgba(42, 47, 74, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    color: #8b93a7 !important;
}

/* Card Number Icons (Visa, Mastercard, etc.) */
.cc-icon {
    filter: brightness(0.8);
    opacity: 0.9;
}

/* Payment Method Selection - Styled Radio Buttons */
.paymethod-info {
    position: relative;
}

.paymethod-info input[type="radio"].icheck-button {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.paymethod-info label {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: rgba(15, 18, 35, 0.8);
    border: 2px solid rgba(71, 85, 105, 0.5);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    min-height: 56px;
}

.paymethod-info label:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(4px);
}

.paymethod-info input[type="radio"]:checked+label,
.paymethod-info input[type="radio"]:checked~label {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 184, 212, 0.2));
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.paymethod-info input[type="radio"]:disabled+label,
.paymethod-info input[type="radio"]:disabled~label {
    opacity: 0.4;
    cursor: not-allowed;
}

.paymethod-info label i {
    margin-right: 12px;
    color: #00d4ff;
    font-size: 18px;
}

.three-column-grid,
.two-column-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.three-column-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.two-column-grid {
    grid-template-columns: auto 1fr;
    align-items: center;
}

/* New Card/Account Radio Button */
#newCCInfo,
#newAccountInfo {
    width: 18px;
    height: 18px;
    accent-color: #00d4ff;
    margin-right: 10px;
    cursor: pointer;
}

.paymethod-info label[for="newCCInfo"],
.paymethod-info label[for="newAccountInfo"] {
    display: inline-flex;
    padding: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    min-height: auto;
    margin-bottom: 20px;
}

.paymethod-info label[for="newCCInfo"]:hover,
.paymethod-info label[for="newAccountInfo"]:hover {
    color: #00d4ff;
    transform: none;
}

/* SnapGrids Client Area Styling */

/* Body and Base Styles */
* {
    box-sizing: border-box;
}

body.clientarea {
    min-height: 100vh;
    color: #fff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide default WHMCS structural elements that interfere with full-screen layout */
#header,
.header,
.navbar,
.master-breadcrumb,
#main-body>.container,
.network-issue-alert {
    display: none !important;
}

#main-body {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh;
}

/* Main Layout Container */
.snapgrids-layout {
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar */
.snapgrids-sidebar {
    width: 250px;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.snapgrids-logo {
    padding: 0 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    transition: padding 0.3s ease, justify-content 0.3s ease;
}

.snapgrids-logo i {
    color: #00d4ff;
    font-size: 24px;
    flex-shrink: 0;
}

.snapgrids-logo .logo-text {
    transition: opacity 0.3s ease, width 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.snapgrids-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.snapgrids-nav li {
    margin: 0;
}

.snapgrids-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: #8b93a7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.snapgrids-nav a .nav-text {
    transition: opacity 0.3s ease, width 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.snapgrids-nav a:hover,
.snapgrids-nav a.active {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-left: 3px solid #00d4ff;
    padding-left: 22px;
}

.snapgrids-nav i {
    width: 20px;
    font-size: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Social Links at Bottom */
.snapgrids-social {
    position: absolute;
    bottom: 80px;
    left: 25px;
    right: 25px;
    transition: left 0.3s ease, right 0.3s ease, padding 0.3s ease;
}

.snapgrids-social-title {
    font-size: 12px;
    color: #8b93a7;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease, width 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.snapgrids-social-links {
    display: flex;
    gap: 10px;
    transition: flex-direction 0.3s ease, gap 0.3s ease;
}

.snapgrids-social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #8b93a7;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.snapgrids-social-links a:hover {
    background: #00d4ff;
    color: #fff;
}

/* Trustpilot */
.snapgrids-trustpilot {
    position: absolute;
    bottom: 20px;
    left: 25px;
    right: 25px;
    transition: left 0.3s ease, right 0.3s ease, padding 0.3s ease;
}

.snapgrids-trustpilot-title {
    font-size: 11px;
    color: #8b93a7;
    margin-bottom: 8px;
    transition: opacity 0.3s ease, width 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.snapgrids-trustpilot-stars {
    display: flex;
    gap: 3px;
    transition: flex-direction 0.3s ease, gap 0.3s ease;
}

.snapgrids-trustpilot-stars i {
    color: #00b67a;
    font-size: 14px;
}

/* Main Content Area */
.snapgrids-main {
    margin-left: 250px;
    flex: 1;
    padding: 0;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Top Bar */
.snapgrids-topbar {
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.snapgrids-page-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.snapgrids-credits {
    display: flex;
    align-items: center;
    gap: 20px;
}

.snapgrids-credits-amount {
    font-size: 16px;
    color: #8b93a7;
}

.snapgrids-credits-amount strong {
    color: #00d4ff;
    font-size: 18px;
}

.snapgrids-credits i {
    color: #8b93a7;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.snapgrids-credits i:hover {
    color: #00d4ff;
}

/* Content Area */
.snapgrids-content {
    padding: 50px;
    width: 100%;
    box-sizing: border-box;
}

/* Product details page optimized spacing */
@media (min-width: 769px) {
    .snapgrids-content-product {
        padding: 30px 40px;
    }
}

/* Alert Banner */
/* Verification Alert Styling */
.snapgrids-alert-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.snapgrids-alert-verification {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.2) 0%, rgba(139, 0, 0, 0.4) 100%);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.snapgrids-alert-content {
    display: flex;
    align-items: center;
    color: #ffffff !important;
}

.snapgrids-alert-content i {
    font-size: 20px;
    margin-right: 15px;
    color: #ff4d4d;
}

.snapgrids-alert-content p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff !important;
}

.snapgrids-alert-verification .btn-resend {
    background: #ff0000;
    color: #ffffff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 20px;
}

.snapgrids-alert-verification .btn-resend:hover {
    background: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.snapgrids-credits-amount strong {
    color: #00d4ff !important;
}

.snapgrids-alert {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.snapgrids-alert p {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.snapgrids-alert button {
    background: transparent;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.snapgrids-alert button:hover {
    background: #00d4ff;
    color: #0a0e27;
}

/* Dashboard Cards */
.snapgrids-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.snapgrids-card {
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.snapgrids-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.snapgrids-card:hover::before {
    opacity: 1;
}

.snapgrids-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
}

.snapgrids-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.snapgrids-card-title {
    font-size: 14px;
    color: #8b93a7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.snapgrids-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
}

.snapgrids-card-icon i {
    font-size: 20px;
    color: #00d4ff;
}

.snapgrids-card-value {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 10px 0 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.snapgrids-card-btn {
    background: #00d4ff;
    color: #0a0e27;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.snapgrids-card-btn:hover {
    background: #00ff88;
    transform: scale(1.05);
    color: #0a0e27;
    text-decoration: none;
}

/* Tabs */
.snapgrids-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0;
}

.snapgrids-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #8b93a7;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    display: inline-block;
}

.snapgrids-tab:hover {
    color: #00d4ff;
}

.snapgrids-tab.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

/* Table Styles */
.snapgrids-table {
    width: 100%;
    background: rgba(26, 31, 58, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.snapgrids-table table {
    width: 100%;
    border-collapse: collapse;
}

.snapgrids-table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    color: #8b93a7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.snapgrids-table td {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
}

.snapgrids-table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.snapgrids-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8b93a7;
}

/* Form Styles */
.snapgrids-form-group {
    margin-bottom: 20px;
}

.snapgrids-form-label {
    display: block;
    color: #8b93a7;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.snapgrids-form-input,
.snapgrids-form-select,
.snapgrids-form-textarea {
    width: 100%;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.snapgrids-form-input:focus,
.snapgrids-form-select:focus,
.snapgrids-form-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(26, 31, 58, 0.8);
}

.snapgrids-form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Payment Methods */
.snapgrids-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.snapgrids-payment-method {
    background: rgba(26, 31, 58, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.snapgrids-payment-method:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.snapgrids-payment-method.active {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
}

.snapgrids-payment-method i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #00d4ff;
}

/* Support Categories */
.snapgrids-support-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.snapgrids-support-category {
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.snapgrids-support-category:hover {
    border-color: #00d4ff;
    transform: translateY(-3px);
}

.snapgrids-support-category h4 {
    color: #00d4ff;
    font-size: 16px;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.snapgrids-support-category p {
    color: #8b93a7;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.snapgrids-support-category i.arrow {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #8b93a7;
}

/* Articles List */
.snapgrids-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.snapgrids-articles li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.snapgrids-articles li:last-child {
    border-bottom: none;
}

.snapgrids-articles a {
    color: #00d4ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.snapgrids-articles a:hover {
    color: #00ff88;
}

.snapgrids-articles i {
    color: #8b93a7;
}

/* Affiliate Page */
.snapgrids-affiliate {
    text-align: center;
    padding: 60px 20px;
}

.snapgrids-affiliate-image {
    margin-bottom: 40px;
}

.snapgrids-affiliate-image img {
    max-width: 400px;
    height: auto;
}

.snapgrids-affiliate h2 {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.snapgrids-affiliate-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
    text-align: left;
}

.snapgrids-affiliate-feature {
    display: flex;
    gap: 15px;
}

.snapgrids-affiliate-feature i {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    font-size: 24px;
    flex-shrink: 0;
}

.snapgrids-affiliate-feature-text h4 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 16px;
}

.snapgrids-affiliate-feature-text p {
    color: #8b93a7;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.snapgrids-affiliate-feature-text a {
    color: #00d4ff;
    text-decoration: none;
}

.snapgrids-affiliate-feature-text a:hover {
    color: #00ff88;
}

/* Bootstrap Grid Support */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.col-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-md-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .offset-sm-1 {
        margin-left: 8.333333%;
    }

    .offset-sm-2 {
        margin-left: 16.666667%;
    }
}

.offset-sm-1 {
    margin-left: 8.333333%;
}

.offset-sm-2 {
    margin-left: 16.666667%;
}

/* Small devices */
@media (min-width: 576px) {
    .col-sm-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-sm-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-sm-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-sm-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-sm-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-sm-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-sm-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-sm-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-sm-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Redactor Editor Dark Theme Fix - CRITICAL for ticket submission */
/* Target all possible Redactor elements with maximum specificity */
.redactor-box,
.redactor-box>div,
.redactor-editor,
.redactor-layer,
.redactor-box textarea,
.redactor-in,
.redactor-styles,
div.redactor-editor,
div[contenteditable="true"],
.redactor-box div[contenteditable],
textarea.form-control,
.form-control textarea {
    background: rgba(26, 31, 58, 0.8) !important;
    background-color: rgba(26, 31, 58, 0.8) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
}

/* Force text color inside Redactor editor */
.redactor-editor *,
.redactor-box div[contenteditable] *,
div[contenteditable="true"] *,
.redactor-in * {
    color: #ffffff !important;
}

/* Placeholder text */
.redactor-editor::placeholder,
.redactor-box textarea::placeholder,
textarea.form-control::placeholder,
div[contenteditable]:empty:before {
    color: #8b93a7 !important;
    opacity: 0.7 !important;
}

/* Focus states */
.redactor-editor:focus,
.redactor-box textarea:focus,
textarea.form-control:focus,
div[contenteditable]:focus {
    outline: none !important;
    border-color: #00d4ff !important;
    background: rgba(26, 31, 58, 0.9) !important;
    background-color: rgba(26, 31, 58, 0.9) !important;
    color: #ffffff !important;
}

/* Redactor toolbar styling */
.redactor-toolbar,
.redactor-air {
    background: rgba(20, 24, 41, 0.95) !important;
    background-color: rgba(20, 24, 41, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 8px !important;
}

.redactor-toolbar li a,
.redactor-toolbar li button {
    color: #8b93a7 !important;
    background: transparent !important;
}

.redactor-toolbar li a:hover,
.redactor-toolbar li button:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
}

/* Override any inline styles on paragraphs and divs inside editor */
.redactor-editor p,
.redactor-editor div,
.redactor-editor span,
div[contenteditable="true"] p,
div[contenteditable="true"] div,
div[contenteditable="true"] span {
    color: #ffffff !important;
}

/* Links inside editor */
.redactor-editor a,
div[contenteditable="true"] a {
    color: #00d4ff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .snapgrids-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .snapgrids-sidebar.mobile-open {
        transform: translateX(0);
    }

    .snapgrids-main {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .snapgrids-topbar {
        padding: 15px 20px;
    }

    .snapgrids-content {
        padding: 20px;
    }

    .snapgrids-cards {
        grid-template-columns: 1fr;
    }

    .snapgrids-card {
        min-height: auto;
    }
}