* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #1a1a2e;
    --border-color: #404560;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-red: #ff5555;
    --accent-green: #4ade80;
    --accent-blue: #3b82f6;
    --accent-orange: #f97316;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 16px;
}

.page {
    min-height: 100vh;
}

.page.hidden {
    display: none;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-title i {
    color: #4ade80;
    font-size: 24px;
}

.header-title h1 {
    font-size: 28px;
    font-weight: 700;
}

/* Price Card */
.price-card {
    /* CHANGED: Border is now green instead of red */
    border: 2px solid #4ade80; 
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    background-color: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.price-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    /* CHANGED: Text color is now green instead of red */
    color: #4ade80; 
    margin-bottom: 8px;
}

.price-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.badge {
    background-color: transparent;
    color: #4ade80;
    border: 2px solid #4ade80;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge:hover {
    background-color: rgba(74, 222, 128, 0.1);
}

/* Payment Grid */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

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

    .price-card {
        flex-direction: column;
        gap: 16px;
    }
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

/* QR Container */
.qr-container {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.qr-placeholder {
    aspect-ratio: 1;
    background-color: #f3f4f6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.qr-text {
    font-size: 56px;
    color: #9ca3af;
    font-weight: 700;
    margin-bottom: 8px;
}

.qr-placeholder p {
    font-size: 12px;
    color: #9ca3af;
}

.qr-id {
    text-align: center;
    color: #6b7280;
    font-size: 12px;
}

.upi-id {
    text-align: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.upi-id .label {
    font-weight: 600;
}

.upi-id .value {
    color: #3b82f6;
}

.qr-info {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    space-y: 4px;
}

.qr-info p {
    margin-bottom: 4px;
}

.qr-info p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.btn-green {
    background-color: #22c55e;
    color: white;
    margin-bottom: 16px;
}

.btn-green:hover {
    background-color: #16a34a;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-submit {
    background: linear-gradient(to right, #dc2626, #b91c1c);
    color: white;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(to right, #b91c1c, #991b1b);
}

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

/* Form */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.form-group input {
    padding: 12px 16px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group input::placeholder {
    color: #6b7280;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload:hover {
    border-color: #6b7280;
}

.file-upload i {
    font-size: 48px;
    color: #6b7280;
    margin-bottom: 12px;
    display: block;
}

.file-upload p {
    font-size: 14px;
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

/* Verification States */
.verifying-state {
    text-align: center;
    padding: 32px 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

.verify-text {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.verify-subtext {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Success State */
.success-state {
    text-align: center;
    padding: 32px 16px;
}

.success-state i {
    font-size: 64px;
    color: #4ade80;
    margin-bottom: 16px;
    display: block;
}

.success-state h3 {
    font-size: 24px;
    color: #4ade80;
    margin-bottom: 16px;
}

.success-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Messages */
.message {
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.message.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.message.success {
    background-color: rgba(74, 222, 128, 0.2);
    color: #86efac;
}

/* Info Box */
.info-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-color: #92400e;
    border-radius: 12px;
    padding: 16px;
}

.info-title {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-hindi {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(to right, rgba(127, 29, 29, 0.3), rgba(120, 53, 15, 0.3));
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.urgency-banner h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash {
    font-size: 24px;
}

.urgency-banner p {
    color: var(--text-primary);
    font-size: 14px;
}

/* Legal Card */
.legal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.legal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.legal-content i {
    color: #4ade80;
    font-size: 20px;
}

.legal-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.legal-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 14px;
}

.link:hover {
    color: #60a5fa;
}

/* Footer */
.footer {
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 64px;
}

.footer-links {
    margin-bottom: 8px;
    space-x: 8px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.footer-links span {
    color: #4b5563;
    margin: 0 8px;
}

/* Admin Button */
.admin-btn {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background-color: #374151;
    color: white;
    border: 1px solid #4b5563;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.admin-btn:hover {
    background-color: #4b5563;
}

/* Admin Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.back-btn,
.refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #a0a0b0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-btn:hover,
.refresh-btn:hover {
    color: var(--text-primary);
}

.refresh-btn {
    background-color: #374151;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
}

.refresh-btn:hover {
    background-color: #4b5563;
}

.refresh-btn i {
    transition: transform 0.3s ease;
}

.refresh-btn.spinning i {
    animation: spin 1s linear infinite;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background-color: #374151;
    color: #a0a0b0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #3b82f6;
    color: white;
}

.filter-btn:hover:not(.active) {
    background-color: #4b5563;
}

/* Submissions List */
.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 32px;
}

.submission-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}

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

.submission-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.submission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.submission-image:hover::after {
    opacity: 1;
}

.submission-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submission-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.submission-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.submission-info p {
    color: var(--text-secondary);
    font-size: 13px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.status-pending {
    background-color: rgba(234, 179, 8, 0.2);
    color: #fcd34d;
}

.status-verified {
    background-color: rgba(74, 222, 128, 0.2);
    color: #86efac;
}

.status-rejected {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.submission-notes {
    background-color: var(--bg-dark);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 16px 0;
}

.submission-notes span {
    font-weight: 600;
    color: var(--text-primary);
}

.submission-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.action-btn-verify {
    background-color: #22c55e;
    color: white;
}

.action-btn-verify:hover {
    background-color: #16a34a;
}

.action-btn-reject {
    background-color: #ef4444;
    color: white;
}

.action-btn-reject:hover {
    background-color: #dc2626;
}

.submission-image-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 32px;
    text-decoration: none;
}

.no-submissions {
    text-align: center;
    padding: 64px 32px;
    color: var(--text-secondary);
}