/**
 * Premium System Styles
 * Styles for the premium application page and modals
 */

/* ================================
   Premium Application Page
   ================================ */

.meetgle-premium-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.meetgle-premium-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.meetgle-premium-login-required .premium-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.meetgle-premium-login-required h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 24px;
}

.meetgle-premium-login-required p {
    color: #666;
    margin-bottom: 20px;
}

/* Header */
.premium-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px;
    margin-bottom: 24px;
}

.premium-header .premium-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.premium-header h1 {
    color: white;
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
}

.premium-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 16px;
}

/* Benefits Section */
.premium-benefits-section {
    margin-bottom: 24px;
}

.premium-benefits-section h3 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 18px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 500px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.benefit-card .benefit-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.benefit-card h4 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 16px;
}

.benefit-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Eligibility Section */
.eligibility-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.eligibility-section h3 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 18px;
}

.eligibility-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.check-item .check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.check-item.passed .check-icon {
    background: #10b981;
    color: white;
}

.check-item.failed .check-icon {
    background: #ef4444;
    color: white;
}

.check-item.pending .check-icon {
    background: #f59e0b;
    color: white;
}

.eligibility-note {
    margin: 16px 0 0;
    font-size: 14px;
}

/* Status Cards */
.premium-status-card {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 24px;
}

.premium-status-card .premium-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.premium-status-card h2 {
    margin: 0 0 12px;
    color: #111827;
}

.premium-status-card p {
    color: #6b7280;
    margin: 0 0 12px;
}

.premium-status-card p.muted {
    color: #9ca3af;
    font-size: 14px;
}

.premium-status-card.premium-active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.premium-status-card.pending {
    border-color: #f59e0b;
}

.premium-status-card.rejected {
    border-color: #ef4444;
}

.premium-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.premium-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
}

.application-details {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    text-align: left;
}

.application-details .detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.application-details .detail:last-child {
    border-bottom: none;
}

.application-details .label {
    color: #6b7280;
    font-size: 14px;
}

.application-details .value {
    color: #111827;
    font-weight: 600;
    font-size: 14px;
}

.application-details .value.status-pending {
    color: #f59e0b;
}

.rejection-reason {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #991b1b;
    font-size: 14px;
    text-align: left;
}

/* ================================
   Application Form
   ================================ */

.premium-application-form {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.premium-application-form h3 {
    margin: 0 0 24px;
    color: #111827;
    font-size: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: #9ca3af;
    font-size: 12px;
}

.form-hint a {
    color: #f59e0b;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
}

.radio-option input {
    display: none;
}

.radio-option .radio-label {
    display: block;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
}

.radio-option input:checked + .radio-label {
    border-color: #f59e0b;
    background: #fffbeb;
}

.radio-option .radio-label strong {
    display: block;
    color: #111827;
    font-size: 16px;
}

.radio-option .radio-label small {
    color: #6b7280;
    font-size: 12px;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    transition: all 0.2s;
}

.file-upload-label:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.file-upload-label.has-file {
    border-style: solid;
    border-color: #10b981;
    background: #ecfdf5;
}

.file-upload-label .upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.file-upload-label .upload-text {
    color: #6b7280;
    font-size: 14px;
}

/* Checkbox */
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-option .checkbox-label {
    color: #374151;
    font-size: 14px;
}

.checkbox-option .checkbox-label a {
    color: #f59e0b;
}

.terms-list {
    margin: 12px 0 0 32px;
    padding: 0;
    list-style: disc;
}

.terms-list li {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 4px;
}

/* Form Actions */
.form-actions {
    margin-top: 24px;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.form-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ================================
   Premium Buttons
   ================================ */

.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #EC4899 0%, #A855F7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.premium-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.premium-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.premium-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-btn-secondary:hover {
    background: #f9fafb;
}

/* ================================
   Premium Modals
   ================================ */

.premium-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: premiumSpin 1s linear infinite;
    margin: 0 auto;
}

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

/* Wallet Modal */
.wallet-balance-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.balance-card {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.balance-card.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.balance-card.secondary {
    background: #f3f4f6;
    color: #374151;
}

.balance-card .balance-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.balance-card .balance-usd {
    font-size: 24px;
    font-weight: 700;
}

.balance-card .balance-sparks {
    font-size: 12px;
    opacity: 0.8;
}

.conversion-rate-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.conversion-rate-box .rate-label {
    color: #92400e;
    font-size: 14px;
}

.conversion-rate-box .rate-value {
    color: #92400e;
    font-weight: 600;
    font-size: 14px;
}

.payout-info {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.payout-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.payout-row .payout-label {
    color: #6b7280;
    font-size: 14px;
}

.payout-row .payout-value {
    color: #111827;
    font-weight: 500;
    font-size: 14px;
}

.wallet-withdraw-btn {
    width: 100%;
}

.withdraw-note {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin-top: 12px;
}

/* Analytics Modal */
.analytics-section {
    margin-bottom: 24px;
}

.analytics-section h4 {
    margin: 0 0 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.earnings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.earnings-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.earnings-card.highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.earnings-card .earnings-period {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.earnings-card .earnings-usd {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.earnings-card .earnings-sparks {
    font-size: 12px;
    color: #9ca3af;
}

/* Daily Chart */
.daily-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.chart-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.chart-bar {
    width: 24px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    margin-top: auto;
    min-height: 4px;
    cursor: pointer;
}

.chart-bar:hover .chart-tooltip {
    display: block;
}

.chart-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    text-align: center;
    margin-bottom: 4px;
}

.chart-label {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 8px;
}

/* Top Senders */
.top-senders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-sender-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.sender-rank {
    width: 24px;
    height: 24px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.top-sender-item:first-child .sender-rank {
    background: #fef3c7;
    color: #92400e;
}

.sender-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sender-info {
    flex: 1;
    min-width: 0;
}

.sender-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.sender-stats {
    font-size: 12px;
    color: #9ca3af;
}

.sender-amount {
    text-align: right;
}

.sender-usd {
    font-weight: 600;
    color: #10b981;
    font-size: 14px;
}

.sender-sparks {
    font-size: 12px;
    color: #9ca3af;
}

/* Withdraw Modal */
.withdraw-balance-box {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.withdraw-balance-box .balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.withdraw-balance-box .balance-value {
    font-size: 28px;
    font-weight: 700;
}

.withdraw-balance-box .balance-sparks {
    font-size: 14px;
    opacity: 0.8;
    margin-left: 8px;
}

.withdraw-form-group {
    margin-bottom: 16px;
}

.withdraw-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.amount-input-wrapper {
    position: relative;
}

.amount-input-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    box-sizing: border-box;
}

.amount-input-wrapper input:focus {
    outline: none;
    border-color: #10b981;
}

.amount-input-wrapper .amount-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
}

.amount-conversion {
    text-align: center;
    color: #10b981;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.amount-hint {
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 4px;
}

.quick-amounts {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.quick-amounts button {
    flex: 1;
    padding: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amounts button:hover {
    background: #e5e7eb;
}

.withdraw-payout-info {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.withdraw-payout-info .payout-label {
    color: #6b7280;
    font-size: 14px;
}

.withdraw-payout-info .payout-email {
    color: #111827;
    font-weight: 500;
    font-size: 14px;
}

.withdraw-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.withdraw-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.withdraw-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.withdraw-message.success {
    background: #ecfdf5;
    color: #065f46;
}

.withdraw-message.error {
    background: #fef2f2;
    color: #991b1b;
}

/* ================================
   Premium Crown Badge on Avatar
   ================================ */

.premium-crown-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 14px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/**
 * Meetgle Premium - Frontend Styles
 */

/* Premium Application Page */
.meetgle-premium-login-required {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.meetgle-premium-login-required .premium-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.meetgle-premium-login-required h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.meetgle-premium-login-required p {
    color: #666;
    margin-bottom: 20px;
}

.premium-btn {
    display: inline-block;
    background: linear-gradient(135deg, #EC4899 0%, #A855F7 100%);
    color: #fff;
    padding: 12px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    color: #fff;
}

/* Application Page Container */
.meetgle-premium-application {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.premium-header {
    text-align: center;
    margin-bottom: 30px;
}

.premium-header .crown-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.premium-header h1 {
    margin: 0 0 10px;
    font-size: 28px;
    background: linear-gradient(135deg, #EC4899 0%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-header p {
    color: #666;
    margin: 0;
}

/* Benefits List */
.premium-benefits {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.premium-benefits h3 {
    margin: 0 0 15px;
    font-size: 18px;
}

.premium-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-benefits li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-benefits li::before {
    content: "✓";
    color: #10B981;
    font-weight: bold;
}

/* Application Form */
.premium-application-form {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.premium-application-form h3 {
    margin: 0 0 20px;
    font-size: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group label small {
    font-weight: normal;
    color: #666;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #EC4899;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group .file-input-wrapper {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-group .file-input-wrapper:hover {
    border-color: #EC4899;
}

.form-group .file-input-wrapper input[type="file"] {
    display: none;
}

.form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #EC4899 0%, #A855F7 100%);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Status Cards */
.premium-status-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.premium-status-card.pending {
    border-top: 4px solid #F59E0B;
}

.premium-status-card.approved {
    border-top: 4px solid #10B981;
}

.premium-status-card.rejected {
    border-top: 4px solid #EF4444;
}

.status-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.premium-status-card h2 {
    margin: 0 0 10px;
}

.premium-status-card p {
    color: #666;
}

/* Gender Check Notice */
.gender-notice {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.gender-notice p {
    margin: 0;
    color: #92400E;
}

/* Not Eligible Message */
.premium-not-eligible {
    text-align: center;
    padding: 40px 20px;
}

.premium-not-eligible .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Premium Modals */
.premium-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.premium-modal.active {
    display: flex;
}

.premium-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.premium-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.premium-modal-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.premium-modal-body {
    padding: 24px;
}

/* Wallet Modal */
.wallet-balance {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.wallet-balance .amount {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #EC4899 0%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wallet-balance .sparks {
    color: #666;
    font-size: 14px;
}

.wallet-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.wallet-stat {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.wallet-stat .label {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.wallet-stat .value {
    font-size: 18px;
    font-weight: 600;
}

.wallet-actions {
    display: flex;
    gap: 12px;
}

.wallet-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-actions .withdraw-btn {
    background: linear-gradient(135deg, #EC4899 0%, #A855F7 100%);
    color: #fff;
    border: none;
}

.wallet-actions .withdraw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wallet-actions .analytics-btn {
    background: #fff;
    border: 2px solid #EC4899;
    color: #EC4899;
}

/* Analytics Modal */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.analytics-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.analytics-card .period {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.analytics-card .amount {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.analytics-card .sparks {
    font-size: 12px;
    color: #999;
}

.analytics-chart {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.analytics-chart h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #666;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-bar .bar {
    width: 100%;
    background: linear-gradient(to top, #EC4899, #A855F7);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}

.chart-bar .label {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
}

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

.top-supporters h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #666;
}

.supporter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.supporter-item .rank {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.supporter-item .rank.gold {
    background: #FEF3C7;
    color: #D97706;
}

.supporter-item .rank.silver {
    background: #F3F4F6;
    color: #6B7280;
}

.supporter-item .rank.bronze {
    background: #FED7AA;
    color: #C2410C;
}

.supporter-item .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.supporter-item .info {
    flex: 1;
}

.supporter-item .username {
    font-weight: 500;
}

.supporter-item .times {
    font-size: 12px;
    color: #666;
}

.supporter-item .amount {
    font-weight: 600;
    color: #EC4899;
}

/* Withdraw Modal */
.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.withdraw-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
}

.withdraw-info .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.withdraw-info .row:last-child {
    margin-bottom: 0;
}

.withdraw-info .label {
    color: #666;
}

.withdraw-info .value {
    font-weight: 500;
}

.amount-input {
    position: relative;
}

.amount-input input {
    width: 100%;
    padding: 14px;
    padding-right: 80px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
}

.amount-input input:focus {
    outline: none;
    border-color: #EC4899;
}

.amount-input .max-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #EC4899;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.usd-preview {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #10B981;
}

.withdraw-submit {
    width: 100%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

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

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

/* Loading State */
.premium-loading {
    text-align: center;
    padding: 40px;
}

.premium-loading .premium-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #EC4899;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

/* Responsive */
@media (max-width: 480px) {
    .premium-modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .wallet-stats {
        grid-template-columns: 1fr;
    }
}
