/* Facebook Events - History and New Post Form Styles */

/* History Button and Section Styles */
.history-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.history-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.history-btn:hover::before {
    left: 100%;
}

.history-btn:hover {
    background: linear-gradient(135deg, #5855eb, #7c3aed);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.history-btn.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.history-btn.active:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* Duo Power Section Styles - Different Colors */
.duo-power-section {
    margin-bottom: 2rem;
}

.duo-intro-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.duo-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #ea580c);
}

.duo-intro-card .card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.duo-intro-card .duo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.duo-intro-card .header-content .section-title {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.duo-intro-card .header-content .section-subtitle {
    color: #cbd5e1;
    font-size: 1rem;
    margin: 0;
}

.duo-rewards-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.reward-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.reward-item:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.reward-item .reward-icon {
    font-size: 2rem;
}

.reward-item .reward-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reward-item .reward-text {
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.95rem;
}

.reward-item .reward-desc {
    color: #94a3b8;
    font-size: 0.85rem;
}

.duo-subscribe-btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    width: 100%;
    justify-content: center;
}

.duo-subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.duo-subscribe-btn:hover::before {
    left: 100%;
}

.duo-subscribe-btn:hover {
    background: linear-gradient(135deg, #d97706, #c2410c);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.duo-subscribe-btn.active {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.duo-subscribe-btn.active:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.5);
}

.duo-subscribe-btn .btn-arrow {
    transition: transform 0.3s ease;
}

.duo-subscribe-btn .btn-arrow.rotated {
    transform: rotate(180deg);
}

/* Duo Form Container */
.duo-form-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.3);
}

/* Duo Setup Required */
.duo-setup-required {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.duo-setup-required .setup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.duo-setup-required .setup-content h4 {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.duo-setup-required .setup-content p {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.duo-setup-required .setup-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.duo-setup-required .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 150px;
}

.duo-setup-required .step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.duo-setup-required .step-text {
    color: #e2e8f0;
    font-size: 0.9rem;
    text-align: center;
}

.setup-btn.duo-setup-btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.setup-btn.duo-setup-btn:hover {
    background: linear-gradient(135deg, #d97706, #c2410c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* Duo Profile Confirmed */
.duo-profile-confirmed {
    background: linear-gradient(135deg, #059669, #047857);
    border: 1px solid #10b981;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.duo-profile-confirmed .profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
}

.duo-profile-confirmed .profile-link {
    color: #dcfce7;
    text-decoration: underline;
    font-weight: 500;
}

.duo-profile-confirmed .profile-link:hover {
    color: white;
}

.duo-profile-confirmed .edit-profile-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duo-profile-confirmed .edit-profile-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.duo-requirements-notice {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 1px solid #ef4444;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.requirements-icon {
    width: 24px;
    height: 24px;
    color: white;
    flex-shrink: 0;
}

.requirements-content h5 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.requirements-content p {
    color: #fecaca;
    font-size: 0.9rem;
    margin: 0;
}

/* Duo Statistics */
.duo-statistics-section {
    margin-bottom: 2rem;
}

.duo-statistics-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.duo-statistics-section .stat-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid #475569;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.duo-statistics-section .stat-card:hover {
    background: linear-gradient(135deg, #334155, #475569);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.4);
}

.duo-statistics-section .points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.points-card.duo-collected-rewards {
    background: linear-gradient(135deg, #059669, #047857);
    border: 1px solid #10b981;
    color: white;
}

.points-card.duo-pending-rewards {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid #fbbf24;
    color: white;
}

.collect-section.duo-collect-section {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border: 1px solid #fbbf24;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.collect-btn.duo-collect-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.collect-btn.duo-collect-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* Duo Management Section */
.duo-management {
    margin-top: 2rem;
}

.duo-history-btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.duo-history-btn:hover {
    background: linear-gradient(135deg, #d97706, #c2410c);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.duo-history-btn.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.duo-history-btn.active:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

/* New Duo Form */
.new-duo-form {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid #475569;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.role-option {
    background: linear-gradient(135deg, #334155, #475569);
    border: 2px solid #64748b;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.role-option:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #475569, #64748b);
}

.role-option.selected {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.role-option .role-input {
    display: none;
}

.role-option .role-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.role-option .role-icon {
    font-size: 2rem;
}

.role-option .role-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.role-option .role-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.role-option .role-desc {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.role-option.selected .role-desc {
    color: #fef3c7;
}

/* Partner Search */
.partner-search {
    position: relative;
}

.partner-status {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.partner-found {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: 2px solid #22c55e;
}

.partner-not-found {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: 2px solid #ef4444;
}

.partner-searching {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: #9ca3af;
    border: 2px solid #6b7280;
    animation: pulse 2s infinite;
}

/* Facebook Links List */
.facebook-links-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.link-group {
    background: linear-gradient(135deg, #374151, #4b5563);
    border: 1px solid #6b7280;
    border-radius: 12px;
    padding: 1.5rem;
}

.link-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.link-number {
    color: #f59e0b;
    font-weight: 600;
    font-size: 1rem;
}

.link-completion .complete-badge {
    background: #059669;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.link-completion .incomplete-badge {
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.link-input {
    width: 100%;
    background: linear-gradient(135deg, #1f2937, #374151);
    border: 1px solid #6b7280;
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    margin-bottom: 1rem;
}

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

.actions-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4b5563, #6b7280);
    border: 2px solid #9ca3af;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.action-checkbox input {
    display: none;
}

.action-checkbox:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.action-checkbox.checked {
    border-color: #059669;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.action-checkbox .action-icon {
    font-size: 1.2rem;
}

.action-checkbox .action-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Links Progress */
.links-progress {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 12px;
}

.progress-text {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #4b5563;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    transition: width 0.3s ease;
}

/* Submit Button */
.submit-btn.duo-submit-btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn.duo-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706, #c2410c);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.submit-btn.duo-submit-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Duo History Section */
.duo-history-section {
    margin-top: 2rem;
}

.duo-history-item {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid #475569;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.duo-history-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.role-badge.sender {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.role-badge.receiver {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-badge.accepted {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-badge.rejected {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.partner-info {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #475569;
}

.detail-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.detail-value {
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.9rem;
}

.facebook-links-summary h6 {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.link-status-item {
    background: linear-gradient(135deg, #374151, #4b5563);
    border: 1px solid #6b7280;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.link-number {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.actions-status {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.action-indicator {
    font-size: 1rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.action-indicator.completed {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .duo-rewards-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .role-selector {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .duo-statistics-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .duo-statistics-section .points-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .actions-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .action-checkbox {
        min-width: auto;
        width: 100%;
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .item-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .duo-intro-card {
        padding: 1.5rem;
    }

    .duo-intro-card .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .duo-statistics-section .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .link-group {
        padding: 1rem;
    }

    .new-duo-form {
        padding: 1.5rem;
    }
}

.history-icon,
.close-icon {
    transition: all 0.3s ease;
}

.btn-text {
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.btn-arrow.rotated {
    transform: rotate(180deg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.section-header h4 {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

/* Enhanced button animations */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    }
}

.history-btn:focus {
    outline: none;
    animation: pulse 2s infinite;
}

.history-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Icon transitions */
.history-icon {
    animation: fadeIn 0.3s ease-in-out;
}

.close-icon {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .history-btn {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
    }

    .history-icon,
    .close-icon {
        width: 16px;
        height: 16px;
    }

    .btn-arrow svg {
        width: 12px;
        height: 12px;
    }
}

/* New Post Form Styles */
.new-post-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.post-points-preview {
    margin: 16px 0;
    text-align: center;
}

.post-points-preview .points-display {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.submit-post-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.submit-post-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

/* Post History Section Styles */
.post-history-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    margin-top: 24px;
}

.history-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-header h5 {
    margin: 0;
    color: white;
    font-weight: 600;
}

.close-history-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-history-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.history-header-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-number {
    font-weight: 600;
    color: #60a5fa;
    font-size: 14px;
}

.post-status {
    flex: 1;
    display: flex;
    justify-content: center;
}

.remove-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.remove-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: scale(1.05);
}

.accepted-badge {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: not-allowed;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.accepted-badge i {
    font-size: 10px;
}

.history-content {
    padding: 16px;
}

.post-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

.post-link i {
    color: #60a5fa;
    font-size: 14px;
}

.link-text {
    color: #93c5fd;
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
}

.link-text:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.post-actions-history {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.action-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.action-badge.like {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.action-badge.comment {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.action-badge.share {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.points-info {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-weight: 600;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-history .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Action check styles for new form */
.action-check {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .history-header {
        padding: 12px 16px;
    }

    .history-list {
        padding: 12px;
    }

    .history-content {
        padding: 12px;
    }

    .post-actions-history {
        flex-direction: column;
        gap: 6px;
    }

    .post-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* SVG Animation Styles */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* User Referrer ID Display Styles */
.user-referrer-info {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-referrer-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #ea580c);
}

.user-referrer-info.new-referrer {
    border-color: #22c55e;
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
    animation: pulse-glow 2s infinite;
}

.user-referrer-info.new-referrer::before {
    background: linear-gradient(90deg, #22c55e, #16a34a, #15803d);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 12px 40px rgba(34, 197, 94, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 16px 50px rgba(34, 197, 94, 0.5);
        transform: scale(1.02);
    }
}

.referrer-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    margin-bottom: 1rem;
}

.new-referrer .referrer-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.referrer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.game-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.game-name {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ea580c, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    font-family: 'Arial Black', sans-serif;
}

.new-referrer .game-name {
    background: linear-gradient(135deg, #22c55e, #16a34a, #15803d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.referrer-label {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.referrer-code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin: 1rem 0;
    backdrop-filter: blur(10px);
}

.new-referrer .referrer-code-container {
    border-color: rgba(34, 197, 94, 0.3);
}

.referrer-code {
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.new-referrer .referrer-code {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copy-btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #d97706, #c2410c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.new-referrer .copy-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.new-referrer .copy-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.referrer-desc {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.new-referrer-notice {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    text-align: center;
    animation: bounce-in 0.5s ease-out;
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-referrer-info {
        margin: 1.5rem;
        padding: 1.5rem;
        max-width: none;
    }

    .referrer-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .game-name {
        font-size: 1.5rem;
    }

    .referrer-code {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .referrer-code-container {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Ensure SVG icons inherit color */
svg {
    color: inherit;
    fill: currentColor;
}
