/**
 * Vantage Client Portal Styles
 * @package VantageClientPortal
 */

/* CSS Variables */
:root {
    --vcp-primary: #3b82f6;
    --vcp-primary-hover: #2563eb;
    --vcp-secondary: #64748b;
    --vcp-success: #10b981;
    --vcp-warning: #f59e0b;
    --vcp-danger: #ef4444;
    --vcp-info: #06b6d4;
    --vcp-muted: #94a3b8;
    --vcp-bg: #0f172a;
    --vcp-bg-secondary: #1e293b;
    --vcp-bg-tertiary: #334155;
    --vcp-text: #f1f5f9;
    --vcp-text-muted: #94a3b8;
    --vcp-border: #334155;
    --vcp-border-light: #475569;
    --vcp-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --vcp-radius: 8px;
    --vcp-radius-sm: 4px;
    --vcp-transition: all 0.2s ease;
}

/* Base Styles */
.vcp-dashboard,
.vcp-services,
.vcp-invoices,
.vcp-domains,
.vcp-tickets,
.vcp-account {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--vcp-text);
    line-height: 1.5;
}

/* Welcome Banner */
.vcp-welcome-banner {
    background: linear-gradient(135deg, var(--vcp-primary), #8b5cf6);
    border-radius: var(--vcp-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.vcp-welcome-banner h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.vcp-welcome-banner p {
    margin: 0;
    opacity: 0.9;
}

/* Stats Grid */
.vcp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vcp-stat-card {
    background: var(--vcp-bg-secondary);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vcp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--vcp-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcp-stat-icon-primary { background: rgba(59, 130, 246, 0.2); color: var(--vcp-primary); }
.vcp-stat-icon-success { background: rgba(16, 185, 129, 0.2); color: var(--vcp-success); }
.vcp-stat-icon-warning { background: rgba(245, 158, 11, 0.2); color: var(--vcp-warning); }
.vcp-stat-icon-danger { background: rgba(239, 68, 68, 0.2); color: var(--vcp-danger); }
.vcp-stat-icon-info { background: rgba(6, 182, 212, 0.2); color: var(--vcp-info); }

.vcp-stat-content {
    display: flex;
    flex-direction: column;
}

.vcp-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.vcp-stat-label {
    font-size: 0.875rem;
    color: var(--vcp-text-muted);
}

/* Dashboard Grid */
.vcp-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.vcp-card-full {
    grid-column: 1 / -1;
}

/* Cards */
.vcp-card {
    background: var(--vcp-bg-secondary);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    overflow: hidden;
}

.vcp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vcp-border);
}

.vcp-card-header h3,
.vcp-card-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.vcp-card-body {
    padding: 1rem 1.25rem;
}

.vcp-link {
    color: var(--vcp-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--vcp-transition);
}

.vcp-link:hover {
    color: var(--vcp-primary-hover);
}

/* Tables */
.vcp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.vcp-table th,
.vcp-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--vcp-border);
}

.vcp-table th {
    font-weight: 600;
    color: var(--vcp-text-muted);
    background: var(--vcp-bg-tertiary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.vcp-table tbody tr:hover {
    background: var(--vcp-bg-tertiary);
}

.vcp-table a {
    color: var(--vcp-primary);
    text-decoration: none;
}

.vcp-table a:hover {
    text-decoration: underline;
}

.vcp-row-warning {
    background: rgba(245, 158, 11, 0.1);
}

.vcp-row-danger,
.vcp-row-overdue {
    background: rgba(239, 68, 68, 0.1);
}

/* Badges */
.vcp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--vcp-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.vcp-badge-sm {
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    margin-left: 0.5rem;
}

.vcp-badge-success { background: rgba(16, 185, 129, 0.2); color: var(--vcp-success); }
.vcp-badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--vcp-warning); }
.vcp-badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--vcp-danger); }
.vcp-badge-info { background: rgba(6, 182, 212, 0.2); color: var(--vcp-info); }
.vcp-badge-muted { background: rgba(148, 163, 184, 0.2); color: var(--vcp-muted); }
.vcp-badge-primary { background: rgba(59, 130, 246, 0.2); color: var(--vcp-primary); }

/* Buttons */
.vcp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    background: var(--vcp-bg-secondary);
    color: var(--vcp-text);
    cursor: pointer;
    transition: var(--vcp-transition);
}

.vcp-btn:hover {
    background: var(--vcp-bg-tertiary);
    border-color: var(--vcp-border-light);
}

.vcp-btn-primary {
    background: var(--vcp-primary);
    border-color: var(--vcp-primary);
    color: white;
}

.vcp-btn-primary:hover {
    background: var(--vcp-primary-hover);
    border-color: var(--vcp-primary-hover);
}

.vcp-btn-danger {
    background: transparent;
    border-color: var(--vcp-danger);
    color: var(--vcp-danger);
}

.vcp-btn-danger:hover {
    background: var(--vcp-danger);
    color: white;
}

.vcp-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.vcp-btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--vcp-text-muted);
    cursor: pointer;
    border-radius: var(--vcp-radius-sm);
    transition: var(--vcp-transition);
}

.vcp-btn-icon:hover {
    background: var(--vcp-bg-tertiary);
    color: var(--vcp-text);
}

/* Filters */
.vcp-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.vcp-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    background: transparent;
    color: var(--vcp-text-muted);
    cursor: pointer;
    transition: var(--vcp-transition);
}

.vcp-filter-btn:hover,
.vcp-filter-btn.active {
    background: var(--vcp-primary);
    border-color: var(--vcp-primary);
    color: white;
}

/* Invoice Summary */
.vcp-invoice-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vcp-summary-item {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.25rem;
    border-radius: var(--vcp-radius);
    text-align: center;
}

.vcp-summary-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.vcp-summary-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }
.vcp-summary-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }

.vcp-summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.vcp-summary-label {
    display: block;
    font-size: 0.875rem;
    color: var(--vcp-text-muted);
}

/* Services Grid (Cards Layout) */
.vcp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.vcp-service-card {
    background: var(--vcp-bg-secondary);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    padding: 1.25rem;
}

.vcp-service-card .vcp-card-header {
    padding: 0;
    border: none;
    margin-bottom: 1rem;
}

.vcp-service-card .vcp-card-body {
    padding: 0;
}

.vcp-service-domain {
    font-size: 0.875rem;
    color: var(--vcp-text-muted);
    margin: 0 0 0.75rem;
}

.vcp-service-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

/* Services List (Dashboard) */
.vcp-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vcp-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--vcp-bg-tertiary);
    border-radius: var(--vcp-radius);
}

.vcp-service-info h4 {
    margin: 0;
    font-size: 0.9375rem;
}

.vcp-service-info p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--vcp-text-muted);
}

.vcp-service-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vcp-service-price {
    font-weight: 600;
}

/* Tabs */
.vcp-account-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--vcp-border);
    margin-bottom: 1.5rem;
}

.vcp-tab-btn {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--vcp-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--vcp-transition);
}

.vcp-tab-btn:hover {
    color: var(--vcp-text);
}

.vcp-tab-btn.active {
    color: var(--vcp-primary);
    border-bottom-color: var(--vcp-primary);
}

.vcp-tab-content {
    display: none;
}

.vcp-tab-content.active {
    display: block;
}

/* Forms */
.vcp-form-group {
    margin-bottom: 1.25rem;
}

.vcp-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.vcp-form-group input,
.vcp-form-group select,
.vcp-form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    background: var(--vcp-bg);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    color: var(--vcp-text);
    transition: var(--vcp-transition);
}

.vcp-form-group input:focus,
.vcp-form-group select:focus,
.vcp-form-group textarea:focus {
    outline: none;
    border-color: var(--vcp-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.vcp-form-group small {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--vcp-text-muted);
}

.vcp-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vcp-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Modal */
.vcp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.vcp-modal-content {
    background: var(--vcp-bg-secondary);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.vcp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vcp-border);
}

.vcp-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.vcp-modal-close {
    background: transparent;
    border: none;
    color: var(--vcp-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.vcp-modal-close:hover {
    color: var(--vcp-text);
}

.vcp-modal form {
    padding: 1.25rem;
}

/* Tickets Header */
.vcp-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.vcp-ticket-stats {
    display: flex;
    gap: 1.5rem;
}

.vcp-stat strong {
    font-weight: 600;
}

/* Payment Methods */
.vcp-payment-methods-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.vcp-payment-methods-header h4 {
    margin: 0;
}

.vcp-payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vcp-payment-method-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--vcp-bg);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
}

.vcp-payment-method-card.vcp-default {
    border-color: var(--vcp-primary);
}

.vcp-payment-method-icon {
    color: var(--vcp-text-muted);
}

.vcp-payment-method-details {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.vcp-payment-method-details strong {
    margin-right: 0.5rem;
}

.vcp-payment-method-details span {
    font-size: 0.875rem;
    color: var(--vcp-text-muted);
}

.vcp-payment-method-actions {
    display: flex;
    gap: 0.5rem;
}

/* Credits */
.vcp-credits-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: var(--vcp-bg);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    margin-bottom: 1.5rem;
}

.vcp-credits-balance {
    text-align: center;
}

.vcp-credits-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vcp-success);
}

.vcp-credits-label {
    font-size: 0.875rem;
    color: var(--vcp-text-muted);
}

/* Security Sections */
.vcp-security-section {
    padding: 1.5rem;
    background: var(--vcp-bg);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    margin-bottom: 1rem;
}

.vcp-security-section h4 {
    margin: 0 0 0.5rem;
}

.vcp-security-section p {
    margin: 0 0 1rem;
    color: var(--vcp-text-muted);
}

/* Domain Search */
.vcp-domain-search-form .vcp-input-group {
    display: flex;
    gap: 0.5rem;
}

.vcp-domain-search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: var(--vcp-bg);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    color: var(--vcp-text);
}

.vcp-domain-results {
    margin-top: 1.5rem;
}

/* Login Prompt */
.vcp-login-prompt {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--vcp-bg-secondary);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
}

.vcp-login-prompt p {
    margin: 0 0 1.5rem;
    color: var(--vcp-text-muted);
}

/* Empty State */
.vcp-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--vcp-text-muted);
}

.vcp-empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.vcp-empty-message {
    color: var(--vcp-text-muted);
    text-align: center;
    padding: 2rem;
}

/* Text Utilities */
.vcp-text-success { color: var(--vcp-success); }
.vcp-text-warning { color: var(--vcp-warning); }
.vcp-text-danger { color: var(--vcp-danger); }
.vcp-text-info { color: var(--vcp-info); }
.vcp-text-muted { color: var(--vcp-text-muted); }

/* Loading States */
.vcp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.vcp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--vcp-border);
    border-top-color: var(--vcp-primary);
    border-radius: 50%;
    animation: vcp-spin 0.8s linear infinite;
}

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

/* Error State */
.vcp-error {
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--vcp-radius);
    color: var(--vcp-danger);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .vcp-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .vcp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vcp-form-row {
        grid-template-columns: 1fr;
    }

    .vcp-account-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .vcp-tab-btn {
        white-space: nowrap;
    }

    .vcp-invoice-summary {
        flex-direction: column;
    }

    .vcp-tickets-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vcp-credits-summary {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .vcp-table {
        font-size: 0.8125rem;
    }

    .vcp-table th,
    .vcp-table td {
        padding: 0.5rem 0.625rem;
    }
}

@media (max-width: 480px) {
    .vcp-stats-grid {
        grid-template-columns: 1fr;
    }

    .vcp-welcome-banner {
        padding: 1.5rem;
    }

    .vcp-modal-content {
        width: 95%;
    }
}

/* ========================================
   Invoice Detail Modal Styles
   ======================================== */

.vcp-modal-large .vcp-modal-content {
    max-width: 700px;
}

.vcp-modal-body {
    padding: 1.25rem;
}

/* Invoice Header */
.vcp-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vcp-border);
}

.vcp-invoice-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.vcp-invoice-date {
    font-size: 0.875rem;
    color: var(--vcp-text-muted);
}

.vcp-invoice-status-badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--vcp-radius);
}

/* Invoice Info Grid */
.vcp-invoice-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.vcp-invoice-info-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vcp-text-muted);
    margin: 0 0 0.5rem;
}

.vcp-invoice-info-section p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Invoice Items Table */
.vcp-invoice-items {
    margin-bottom: 1.5rem;
}

.vcp-invoice-items h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.vcp-invoice-items .vcp-table {
    margin-bottom: 0;
}

.vcp-invoice-items .vcp-table td:last-child,
.vcp-invoice-items .vcp-table th:last-child {
    text-align: right;
}

/* Invoice Totals */
.vcp-invoice-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--vcp-bg);
    border-radius: var(--vcp-radius);
}

.vcp-invoice-total-row {
    display: flex;
    justify-content: space-between;
    width: 200px;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--vcp-border);
}

.vcp-invoice-total-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.125rem;
}

.vcp-invoice-total-row.balance-due {
    color: var(--vcp-warning);
}

/* Invoice Transactions */
.vcp-invoice-transactions {
    margin-bottom: 1.5rem;
}

.vcp-invoice-transactions h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

/* Invoice Actions */
.vcp-invoice-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vcp-border);
}

/* ========================================
   Payment Modal Styles
   ======================================== */

.vcp-payment-modal .vcp-modal-content {
    max-width: 500px;
}

.vcp-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--vcp-bg);
    border-radius: var(--vcp-radius);
    margin-bottom: 1.5rem;
}

.vcp-payment-invoice-info h4 {
    margin: 0;
    font-size: 0.9375rem;
}

.vcp-payment-invoice-info p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--vcp-text-muted);
}

.vcp-payment-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vcp-warning);
}

/* Payment Method Selection */
.vcp-payment-section {
    margin-bottom: 1.5rem;
}

.vcp-payment-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.vcp-payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vcp-payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--vcp-bg);
    border: 1px solid var(--vcp-border);
    border-radius: var(--vcp-radius);
    cursor: pointer;
    transition: var(--vcp-transition);
}

.vcp-payment-option:hover {
    border-color: var(--vcp-border-light);
    background: var(--vcp-bg-tertiary);
}

.vcp-payment-option.selected {
    border-color: var(--vcp-primary);
    background: rgba(59, 130, 246, 0.1);
}

.vcp-payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--vcp-primary);
}

.vcp-payment-option-details {
    flex: 1;
}

.vcp-payment-option-details strong {
    display: block;
    font-size: 0.9375rem;
}

.vcp-payment-option-details span {
    font-size: 0.8125rem;
    color: var(--vcp-text-muted);
}

.vcp-payment-option-icon {
    color: var(--vcp-text-muted);
    font-size: 1.25rem;
}

/* Gateway Icons */
.vcp-gateway-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vcp-bg-secondary);
    border-radius: var(--vcp-radius-sm);
}

/* Payment Processing State */
.vcp-payment-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.vcp-payment-processing .vcp-spinner {
    margin-bottom: 1rem;
}

.vcp-payment-processing p {
    margin: 0;
    color: var(--vcp-text-muted);
}

/* Payment Success State */
.vcp-payment-success {
    text-align: center;
    padding: 2rem;
}

.vcp-payment-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--vcp-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.vcp-payment-success h4 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.vcp-payment-success p {
    margin: 0;
    color: var(--vcp-text-muted);
}

/* Payment Actions */
.vcp-payment-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vcp-border);
}

.vcp-payment-actions .vcp-btn {
    flex: 1;
}

/* ========================================
   Alert Styles
   ======================================== */

.vcp-alert {
    padding: 1rem;
    border-radius: var(--vcp-radius);
    margin-bottom: 1rem;
}

.vcp-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--vcp-success);
}

.vcp-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--vcp-warning);
}

.vcp-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--vcp-danger);
}

.vcp-alert-info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--vcp-info);
}

/* ========================================
   Action Buttons in Tables
   ======================================== */

.vcp-action-buttons {
    display: flex;
    gap: 0.25rem;
}

.vcp-action-btn {
    padding: 0.375rem 0.5rem;
    background: transparent;
    border: none;
    color: var(--vcp-text-muted);
    cursor: pointer;
    border-radius: var(--vcp-radius-sm);
    transition: var(--vcp-transition);
}

.vcp-action-btn:hover {
    background: var(--vcp-bg-tertiary);
    color: var(--vcp-text);
}

.vcp-action-btn-primary:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--vcp-primary);
}

.vcp-action-btn-success:hover {
    background: rgba(16, 185, 129, 0.2);
    color: var(--vcp-success);
}

.vcp-action-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--vcp-danger);
}

/* Tooltip for action buttons */
.vcp-action-btn[title] {
    position: relative;
}

/* ========================================
   Responsive adjustments for modals
   ======================================== */

@media (max-width: 768px) {
    .vcp-invoice-info {
        grid-template-columns: 1fr;
    }

    .vcp-invoice-header {
        flex-direction: column;
        gap: 1rem;
    }

    .vcp-payment-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .vcp-invoice-actions,
    .vcp-payment-actions {
        flex-direction: column;
    }

    .vcp-invoice-totals {
        align-items: stretch;
    }

    .vcp-invoice-total-row {
        width: 100%;
    }
}
