/* ===================================
   CSS VARIABLES - Design System
   =================================== */
:root {
    /* Dynamic Colors - Will be set by config.php */
    --blue-primary: #4A90E2;
    --blue-light: #6BA8E9;
    --blue-dark: #357ABD;
    --blue-primary-rgb: 74, 144, 226;
    
    /* Theme Variables - Default Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #475569;
    --card-bg: #1e293b;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --header-bg: #1e293b;
}

/* ===================================
   BASE STYLES - THEME AWARE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* Allow text selection in input fields */
input, textarea {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

/* Prevent zoom on input focus */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="password"], 
textarea, 
select {
    font-size: 16px !important;
    transform: translateZ(0);
    -webkit-appearance: none;
    border-radius: 0;
}

/* Disable text selection on buttons */
button, .subscription-button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* ===================================
   HEADER STYLES - THEME AWARE
   =================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    max-width: 150px;
    height: 100%;
    max-height: 56px;
}

.globe-icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    position: absolute;
    right: 16px;
}

/* ===================================
   MAIN CONTAINER - THEME AWARE
   =================================== */
.main-container {
    max-width: 430px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
}

/* ===================================
   PROFILE SECTION - THEME AWARE
   =================================== */
.profile-section {
    position: relative;
}

/* Cover Container with Gradient */
.cover-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 64%;
    overflow: hidden;
}

.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient Overlay */
.cover-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.275), rgba(0, 0, 0, 0));
    z-index: 2;
    pointer-events: none;
}

/* Profile Info Overlay */
.profile-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    color: white;
    z-index: 15;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,1.3);
}

.profile-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    font-weight: 500;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    width: 16px;
    height: 16px;
}

/* Profile Picture */
.profile-picture-container {
    position: absolute;
    bottom: -66px;
    left: 16px;
    z-index: 10;
}

.profile-picture {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    background: var(--bg-secondary);
    position: relative;
}

/* Online Status */
.online-status {
    position: absolute;
    bottom: 15px;
    right: 13px;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 11;
}

/* Profile Details */
.profile-details {
    padding: 78px 16px 16px;
    background: var(--bg-primary);
}

.profile-username {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-handle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.instagram-icon {
    width: 16px;
    height: 16px;
}

/* ===================================
   SUBSCRIPTION SECTION - THEME AWARE
   =================================== */
.subscription-section {
    padding: 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.subscription-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.subscription-button {
    border-radius: 30px !important;
    padding: 0 25px;
    width: 100%;
    height: 60px !important;
    font-size: 18px;
    font-weight: 300;
    color: #fefefe;
    background: linear-gradient(45deg, var(--blue-light), var(--blue-primary));
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.subscription-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--blue-primary-rgb), 0.3);
}

.subscription-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fefefe;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.subscription-price {
    font-weight: 700;
    color: #fefefe;
}

/* Promotions Expandable */
.promotions-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
}

.chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.promotions-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.promotions-content.collapsed {
    max-height: 0;
}

.promotions-content.expanded {
    max-height: 200px;
}

/* ===================================
   TAB NAVIGATION - THEME AWARE
   =================================== */
.tab-navigation {
    display: flex;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.tab-button {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-button.active {
    color: var(--blue-primary);
    background-color: rgba(var(--blue-primary-rgb), 0.1);
    border-bottom-color: var(--blue-primary);
}

/* ===================================
   CONTENT AREA - THEME AWARE
   =================================== */
.content-area {
    background: var(--bg-primary);
    min-height: 300px;
}

/* Post Card */
.post-card {
    border-bottom: 1px solid var(--border-color);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-user-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-username {
    font-size: 12px;
    color: var(--text-secondary);
}

.post-menu {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-menu:hover {
    background: var(--bg-secondary);
}

/* ===================================
   POST CONTENT WITH VIDEO
   =================================== */
.post-content {
    position: relative;
    background: var(--bg-secondary);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Video with Blur Effect */
.post-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    opacity: 0.7;
    z-index: 1;
}

.lock-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    margin: 20px;
}

[data-theme="dark"] .lock-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.lock-icon {
    width: 48px;
    height: 48px;
    color: var(--text-primary);
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.post-stats-overlay {
    display: flex;
    gap: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

[data-theme="dark"] .post-stats-overlay {
    background: rgba(30, 41, 59, 0.9);
}

.stat-overlay {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Post Actions */
.post-actions {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.action-button:hover {
    background: var(--bg-secondary);
}

.action-button.bookmark {
    margin-left: auto;
}

.action-icon {
    width: 20px;
    height: 20px;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.media-item {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.media-lock {
    width: 32px;
    height: 32px;
    color: var(--text-tertiary);
}

/* ===================================
   MODAL STYLES - THEME AWARE
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 20px 40px -12px var(--shadow-color);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    position: relative;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.modal-logo-container {
    text-align: center;
    margin-bottom: 12px;
}

.modal-logo {
    height: 24px;
}

/* Creator Info */
.modal-creator-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid rgba(var(--blue-primary-rgb), 0.2);
}

.modal-creator-avatar-container {
    flex-shrink: 0;
}

.modal-creator-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--blue-primary);
}

.modal-creator-details {
    flex: 1;
    min-width: 0;
}

.modal-creator-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1px;
    line-height: 1.2;
}

.modal-creator-handle {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.2;
}

.modal-plan-info {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-primary));
    color: white;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    box-shadow: 0 4px 12px rgba(var(--blue-primary-rgb), 0.3);
}

.plan-savings {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
    display: inline-block;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 8px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--blue-primary);
    transform: scale(1.3);
}

.step-dot.completed {
    background: #22c55e;
}

/* Progress Bar */
.progress-container {
    margin: 8px 0 12px;
    padding: 0 16px;
}

.progress-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Modal Body */
.modal-body {
    padding: 12px 16px 16px;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 4px;
}

.step-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(var(--blue-primary-rgb), 0.1);
    transform: translateY(-1px);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.form-error {
    color: #ef4444;
    font-size: 10px;
    margin-top: 3px;
    display: none;
    font-weight: 500;
}

.form-error.show {
    display: block;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.trust-icon {
    width: 12px;
    height: 12px;
    color: #22c55e;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    margin: 10px 0;
    font-size: 10px;
    color: #166534;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

[data-theme="dark"] .security-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.4);
    color: #86efac;
}

.security-icon {
    width: 14px;
    height: 14px;
    color: #22c55e;
    flex-shrink: 0;
}

/* Price Comparison */
.price-comparison {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 10px;
    margin: 12px 0;
}

[data-theme="dark"] .price-comparison {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
}

.price-row:last-child {
    margin-bottom: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    font-weight: 700;
    font-size: 13px;
}

.price-label {
    color: #166534;
}

[data-theme="dark"] .price-label {
    color: #86efac;
}

.price-value {
    color: #166534;
    font-weight: 600;
}

[data-theme="dark"] .price-value {
    color: #86efac;
}

/* Urgency Indicator */
.urgency-indicator {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 8px 10px;
    margin: 10px 0;
    text-align: center;
}

[data-theme="dark"] .urgency-indicator {
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid rgba(245, 158, 11, 0.4);
}

.urgency-text {
    color: #92400e;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.3;
}

[data-theme="dark"] .urgency-text {
    color: #fde68a;
}

.urgency-timer {
    color: #d97706;
    font-weight: 700;
    font-size: 12px;
}

[data-theme="dark"] .urgency-timer {
    color: #fbbf24;
}

/* Button Styles */
.modal-payment-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-primary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(var(--blue-primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.modal-payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--blue-primary-rgb), 0.4);
}

.modal-payment-button:active {
    transform: translateY(0);
}

.modal-payment-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.modal-payment-button:hover .button-shimmer {
    left: 100%;
}

.modal-info-text {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
    line-height: 1.3;
}

/* Payment Step Styles */
.payment-step {
    display: none;
    padding: 16px 20px 20px;
}

.payment-step.active {
    display: block;
}

.payment-header {
    text-align: center;
    margin-bottom: 20px;
}

.payment-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.payment-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.qr-code-container {
    text-align: center;
    margin-bottom: 20px;
}

.qr-code-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 12px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.copy-code-container {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
}

.copy-code-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-code-content {
    display: flex;
    gap: 8px;
}

.copy-code-text {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-size: 11px;
    font-family: monospace;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.3;
}

.copy-button {
    background: var(--blue-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.payment-status {
    text-align: center;
    padding: 16px;
    background: rgba(var(--blue-primary-rgb), 0.05);
    border-radius: 14px;
    margin-bottom: 12px;
    border: 2px solid rgba(var(--blue-primary-rgb), 0.1);
}

[data-theme="dark"] .payment-status {
    background: rgba(var(--blue-primary-rgb), 0.1);
    border: 2px solid rgba(var(--blue-primary-rgb), 0.2);
}

.status-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    color: var(--blue-primary);
}

.status-text {
    font-size: 13px;
    color: var(--blue-primary);
    font-weight: 600;
}

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--blue-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Step */
.success-step {
    text-align: center;
    padding: 24px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #22c55e;
}

.success-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.success-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.success-button {
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-button:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

/* ===================================
   COOKIE CONSENT - THEME AWARE
   =================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 16px;
    box-shadow: 0 -4px 12px var(--shadow-color);
    z-index: 1000;
}

.cookie-content {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cookie-button {
    align-self: center;
    padding: 10px 24px;
    background: var(--blue-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--blue-primary-rgb), 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(var(--blue-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--blue-primary-rgb), 0); }
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 14px;
    display: none;
    font-weight: 500;
}

[data-theme="dark"] .error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.error-message.show {
    display: block;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 8px;
    }
    
    .modal-content {
        max-height: 92vh;
        border-radius: 14px;
        max-width: 360px;
    }
    
    .modal-header {
        padding: 14px 14px 10px;
    }
    
    .modal-body {
        padding: 10px 14px 14px;
    }
    
    .modal-creator-info {
        padding: 10px;
        gap: 8px;
    }
    
    .modal-creator-avatar {
        width: 46px;
        height: 46px;
    }
    
    .modal-creator-name {
        font-size: 14px;
    }
    
    .trust-indicators {
        gap: 10px;
        padding: 6px;
    }
    
    .form-input {
        padding: 10px 12px;
    }
    
    .modal-payment-button {
        padding: 12px;
        font-size: 13px;
    }
    
    .qr-code-image {
        width: 160px;
        height: 160px;
    }
    
    .step-title {
        font-size: 15px;
    }
    
    .progress-container {
        padding: 0 14px;
    }
}

@media (max-width: 375px) {
    .modal-overlay {
        padding: 6px;
    }
    
    .modal-content {
        border-radius: 12px;
        max-width: 340px;
    }
    
    .modal-creator-info {
        padding: 8px;
        gap: 6px;
    }
    
    .modal-creator-avatar {
        width: 42px;
        height: 42px;
    }
    
    .trust-indicators {
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .qr-code-image {
        width: 140px;
        height: 140px;
    }
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .cookie-button {
        align-self: auto;
        flex-shrink: 0;
    }

    .modal-content {
        max-width: 400px;
    }

    .modal-creator-info {
        padding: 14px;
    }

    .modal-creator-avatar {
        width: 54px;
        height: 54px;
    }

    .modal-creator-name {
        font-size: 16px;
    }
}