:root {
    --pf-primary: #6c5ce7;
    --pf-primary-dark: #5a4bd1;
    --pf-primary-light: #a29bfe;
    --pf-success: #00b894;
    --pf-success-dark: #00a381;
    --pf-danger: #d63031;
    --pf-danger-dark: #b71c1c;
    --pf-warning: #fdcb6e;
    --pf-warning-dark: #f0b800;
    --pf-dark: #2d3436;
    --pf-gray: #636e72;
    --pf-light: #dfe6e9;
    --pf-lighter: #f1f3f5;
    --pf-bg: #f8f9fa;
    --pf-white: #ffffff;
    --pf-radius: 8px;
    --pf-radius-sm: 4px;
    --pf-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --pf-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --pf-transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

.pf-test-banner {
    position: sticky;
    top: 0;
    z-index: 99999;
    background: var(--pf-danger);
    color: var(--pf-white);
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pf-test-banner span {
    display: inline-block;
    max-width: 1200px;
    margin: 0 auto;
}

.pf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Auth Pages */
.pf-auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 70vh;
    padding-top: 60px;
}

.pf-auth-card {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 520px;
}

.pf-register-card {
    max-width: 640px;
}

.pf-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.pf-auth-header h2 {
    margin: 16px 0 8px;
    font-size: 24px;
    color: var(--pf-dark);
}

.pf-auth-header p {
    color: var(--pf-gray);
    margin: 0;
    font-size: 14px;
}

.pf-logo {
    display: flex;
    justify-content: center;
}

/* Forms */
.pf-form .pf-field {
    margin-bottom: 18px;
}

.pf-form .pf-field:last-child {
    margin-bottom: 0;
}

.pf-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-dark);
}

.pf-form input[type="text"],
.pf-form input[type="email"],
.pf-form input[type="password"],
.pf-form input[type="tel"],
.pf-form input[type="number"],
.pf-form input[type="datetime-local"],
.pf-form textarea,
.pf-form select,
.pf-input,
.pf-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--pf-light);
    border-radius: var(--pf-radius-sm);
    font-size: 15px;
    color: var(--pf-dark);
    background: var(--pf-white);
    transition: border-color var(--pf-transition);
    font-family: inherit;
}

.pf-form input:focus,
.pf-form textarea:focus,
.pf-form select:focus,
.pf-input:focus,
.pf-select:focus {
    outline: none;
    border-color: var(--pf-primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}

.pf-form textarea {
    resize: vertical;
    min-height: 80px;
}

.pf-required {
    color: var(--pf-danger);
}

.pf-row {
    display: flex;
    gap: 16px;
}

.pf-col-6 {
    flex: 1;
}

.pf-field-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-field-inline label {
    margin-bottom: 0;
}

.pf-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal !important;
}

/* Buttons */
.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--pf-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--pf-transition);
    font-family: inherit;
    line-height: 1.4;
}

.pf-btn:hover {
    transform: translateY(-1px);
}

.pf-btn:active {
    transform: translateY(0);
}

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

.pf-btn-primary:hover {
    background: var(--pf-primary-dark);
}

.pf-btn-secondary {
    background: var(--pf-dark);
    color: var(--pf-white);
}

.pf-btn-secondary:hover {
    background: #1e272e;
}

.pf-btn-outline {
    background: transparent;
    border-color: var(--pf-primary);
    color: var(--pf-primary);
}

.pf-btn-outline:hover {
    background: var(--pf-primary);
    color: var(--pf-white);
}

.pf-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--pf-gray);
}

.pf-btn-ghost:hover {
    color: var(--pf-dark);
    background: var(--pf-lighter);
}

.pf-btn-full {
    width: 100%;
}

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

.pf-btn-danger:hover {
    background: var(--pf-danger-dark);
}

.pf-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.pf-btn-lg {
    padding: 14px 32px;
    font-size: 17px;
}

.pf-btn:disabled,
.pf-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pf-btn-spinner {
    display: none;
}

.pf-btn.loading .pf-btn-text {
    display: none;
}

.pf-btn.loading .pf-btn-spinner {
    display: inline;
}

/* Auth links */
.pf-auth-links {
    text-align: center;
    margin-top: 16px;
}

.pf-auth-links a {
    color: var(--pf-primary);
    text-decoration: none;
    font-size: 14px;
}

.pf-auth-links a:hover {
    text-decoration: underline;
}

.pf-auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--pf-light);
    font-size: 14px;
    color: var(--pf-gray);
}

.pf-auth-footer a {
    color: var(--pf-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Messages */
.pf-auth-message,
.pf-message {
    padding: 12px 16px;
    border-radius: var(--pf-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.pf-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pf-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pf-message-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.pf-message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Dashboard */
.pf-dashboard-header {
    margin-bottom: 32px;
}

.pf-dashboard-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--pf-dark);
}

.pf-dashboard-header p {
    color: var(--pf-gray);
    margin: 0;
}

.pf-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.pf-dash-card {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    padding: 28px;
    text-align: center;
    transition: transform var(--pf-transition), box-shadow var(--pf-transition);
}

.pf-dash-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pf-shadow-lg);
}

.pf-dash-icon {
    margin-bottom: 12px;
}

.pf-dash-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--pf-dark);
}

/* Dashboard Tabs */
.pf-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--pf-light);
    margin-bottom: 24px;
}

.pf-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-gray);
    cursor: pointer;
    transition: all var(--pf-transition);
    font-family: inherit;
}

.pf-tab-btn:hover {
    color: var(--pf-dark);
}

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

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

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

/* Overview Stats */
.pf-overview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.pf-stat-card {
    background: var(--pf-lighter);
    border-radius: var(--pf-radius);
    padding: 20px;
    text-align: center;
}

.pf-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--pf-primary);
}

.pf-stat-label {
    display: block;
    font-size: 13px;
    color: var(--pf-gray);
    margin-top: 4px;
}

/* Loading */
.pf-loading {
    text-align: center;
    padding: 32px;
    color: var(--pf-gray);
}

.pf-loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

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

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

/* Competitions Grid */
.pf-competitions-header {
    text-align: center;
    margin-bottom: 24px;
}

.pf-competitions-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    color: var(--pf-dark);
}

.pf-competitions-header p {
    color: var(--pf-gray);
    margin: 0;
}

.pf-competitions-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.pf-competitions-filters .pf-search {
    flex: 1;
}

.pf-competitions-filters .pf-sort {
    width: 220px;
}

.pf-competitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.pf-comp-card {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    overflow: hidden;
    transition: transform var(--pf-transition), box-shadow var(--pf-transition);
    cursor: pointer;
}

.pf-comp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pf-shadow-lg);
}

.pf-comp-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--pf-lighter);
}

.pf-comp-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--pf-primary-light), var(--pf-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pf-white);
    font-size: 40px;
}

.pf-comp-card-body {
    padding: 20px;
}

.pf-comp-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--pf-dark);
}

.pf-comp-card-excerpt {
    font-size: 14px;
    color: var(--pf-gray);
    margin: 0 0 12px;
    line-height: 1.5;
}

.pf-comp-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pf-comp-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--pf-primary);
}

.pf-comp-card-deadline {
    font-size: 12px;
    color: var(--pf-gray);
}

.pf-comp-card-countdown,
.pf-countdown {
    font-size: 12px;
    color: var(--pf-danger);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pf-expired {
    opacity: 0.6;
}

.pf-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.pf-badge-success {
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
}

.pf-badge-muted {
    background: rgba(99, 110, 114, 0.12);
    color: #636e72;
}

.pf-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.pf-winner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.pf-winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.pf-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--pf-light);
}

.pf-share span {
    font-size: 14px;
    color: var(--pf-gray);
}

.pf-referral-code {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.pf-referral-code input {
    flex: 1;
    font-size: 14px;
    text-align: center;
    letter-spacing: 1px;
}

.pf-comp-card-progress,
.pf-comp-single-progress-section {
    margin-top: 12px;
}

.pf-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-gray);
    margin-bottom: 4px;
}

.pf-progress-bar {
    height: 8px;
    background: var(--pf-light);
    border-radius: 4px;
    overflow: hidden;
}

.pf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pf-primary), var(--pf-primary-light));
    border-radius: 4px;
    transition: width 0.6s ease;
    min-width: 4px;
}

.pf-cart-free-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--pf-success);
    background: rgba(0, 184, 148, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.pf-cart-free-note {
    font-size: 13px;
    color: var(--pf-success);
    font-weight: 600;
}

.pf-voucher-redeem {
    display: flex;
    gap: 8px;
}

.pf-voucher-redeem input {
    flex: 1;
    text-transform: uppercase;
}

.pf-voucher-message {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.pf-voucher-message.pf-success {
    color: var(--pf-success);
}

.pf-voucher-message.pf-error {
    color: var(--pf-danger);
}

.pf-recent-activity-wrap {
    background: var(--pf-card-bg);
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pf-activity-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--pf-text);
}

.pf-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.pf-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pf-border);
    font-size: 14px;
    color: var(--pf-text);
}

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

.pf-activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: var(--pf-primary);
    color: #fff;
}

.pf-activity-item.winner .pf-activity-icon {
    background: var(--pf-success);
}

.pf-activity-item.purchase .pf-activity-icon {
    background: var(--pf-warning);
}

.pf-activity-time {
    margin-left: auto;
    font-size: 12px;
    color: var(--pf-gray);
    white-space: nowrap;
}

.pf-verified-draw-card {
    background: linear-gradient(135deg, var(--pf-success), #00a884);
    border-radius: 12px;
    color: #fff;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.25);
}

.pf-verified-draw-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.pf-verified-draw-header h3 {
    margin: 0 0 4px;
    font-size: 1.3rem;
}

.pf-verified-note {
    margin: 0;
    opacity: 0.9;
    font-size: 13px;
}

.pf-verified-draw-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 16px;
}

.pf-verified-stat {
    display: flex;
    flex-direction: column;
}

.pf-verified-label {
    font-size: 12px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pf-verified-value {
    font-size: 16px;
    font-weight: 700;
}

.pf-verified-eligible {
    margin: 14px 0 0;
    font-size: 14px;
    font-weight: 600;
}

.pf-social-login {
    margin: 18px 0;
}

.pf-social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--pf-gray);
    font-size: 13px;
    margin: 14px 0;
}

.pf-social-divider::before,
.pf-social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--pf-border);
}

.pf-social-divider span {
    padding: 0 10px;
}

.pf-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
    font-weight: 600;
    border-radius: 8px;
    color: #fff;
}

.pf-google-btn {
    background: #4285f4;
    border: 1px solid #4285f4;
}

.pf-google-btn:hover {
    background: #357ae8;
}

.pf-apple-btn {
    background: #000;
    border: 1px solid #000;
}

.pf-apple-btn:hover {
    background: #222;
}

.pf-comp-question-note {
    font-size: 12px;
    color: var(--pf-gray);
    margin-bottom: 12px;
}

.pf-success {
    color: var(--pf-success);
}

.pf-error {
    color: var(--pf-danger);
}

/* Pagination */
.pf-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pf-page-btn {
    padding: 8px 16px;
    background: var(--pf-white);
    border: 2px solid var(--pf-light);
    border-radius: var(--pf-radius-sm);
    color: var(--pf-dark);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--pf-transition);
    font-family: inherit;
}

.pf-page-btn:hover {
    border-color: var(--pf-primary);
    color: var(--pf-primary);
}

.pf-page-btn.pf-active {
    background: var(--pf-primary);
    border-color: var(--pf-primary);
    color: var(--pf-white);
}

.pf-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal */
.pf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: pf-fade-in 0.2s ease;
}

.pf-modal-content {
    position: relative;
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow-lg);
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    animation: pf-slide-up 0.25s ease;
    z-index: 1;
}

.pf-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--pf-gray);
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.pf-modal-close:hover {
    color: var(--pf-dark);
}

.pf-modal-body {
    padding: 32px;
}

.pf-modal-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--pf-radius-sm);
    margin-bottom: 20px;
    background: var(--pf-lighter);
}

.pf-modal-title {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--pf-dark);
}

.pf-modal-prize {
    font-size: 16px;
    color: var(--pf-primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.pf-modal-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.pf-modal-detail {
    padding: 12px;
    background: var(--pf-lighter);
    border-radius: var(--pf-radius-sm);
}

.pf-modal-detail-label {
    font-size: 12px;
    color: var(--pf-gray);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pf-modal-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--pf-dark);
}

.pf-modal-question {
    margin-bottom: 16px;
}

.pf-modal-question label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--pf-dark);
}

@keyframes pf-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pf-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cart */
.pf-cart-page h1 {
    margin: 0 0 24px;
}

.pf-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    overflow: hidden;
    box-shadow: var(--pf-shadow);
}

.pf-cart-table th {
    background: var(--pf-lighter);
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pf-cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--pf-light);
    vertical-align: middle;
}

.pf-cart-table tr:last-child td {
    border-bottom: none;
}

.pf-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pf-cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--pf-radius-sm);
    object-fit: cover;
    background: var(--pf-lighter);
}

.pf-cart-item-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.pf-cart-item-info span {
    font-size: 13px;
    color: var(--pf-gray);
}

.pf-cart-remove {
    background: none;
    border: none;
    color: var(--pf-danger);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
}

.pf-cart-remove:hover {
    text-decoration: underline;
}

.pf-cart-total {
    text-align: right;
    margin-top: 20px;
    font-size: 22px;
    font-weight: 700;
    color: var(--pf-dark);
}

.pf-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.pf-cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.pf-empty-icon {
    margin-bottom: 16px;
}

.pf-cart-empty h2 {
    margin: 0 0 8px;
    color: var(--pf-dark);
}

.pf-cart-empty p {
    color: var(--pf-gray);
    margin: 0 0 24px;
}

/* Checkout */
.pf-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

.pf-checkout-section {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    padding: 28px;
    margin-bottom: 24px;
}

.pf-checkout-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: var(--pf-dark);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pf-light);
}

.pf-checkout-summary {
    position: sticky;
    top: 20px;
}

.pf-summary-items {
    margin-bottom: 16px;
}

.pf-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.pf-summary-item span:first-child {
    color: var(--pf-gray);
}

.pf-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 2px solid var(--pf-dark);
    font-size: 18px;
    font-weight: 700;
}

.pf-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--pf-light);
    border-radius: var(--pf-radius-sm);
    cursor: pointer;
    transition: border-color var(--pf-transition);
}

.pf-payment-method:hover {
    border-color: var(--pf-primary-light);
}

.pf-payment-method.pf-selected {
    border-color: var(--pf-primary);
    background: rgba(108,92,231,0.04);
}

.pf-payment-method input[type="radio"] {
    margin: 0;
}

.pf-payment-method label {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

/* Order Confirmation */
.pf-confirmation {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.pf-confirmation-icon {
    margin-bottom: 16px;
}

.pf-confirmation h1 {
    margin: 0 0 8px;
    color: var(--pf-success);
}

.pf-confirmation p {
    color: var(--pf-gray);
    margin: 0 0 24px;
}

.pf-confirmation-details {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    padding: 24px;
    text-align: left;
    margin-bottom: 24px;
}

.pf-confirmation-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--pf-light);
}

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

.pf-confirmation-row span:first-child {
    color: var(--pf-gray);
    font-size: 14px;
}

.pf-confirmation-row span:last-child {
    font-weight: 600;
    font-size: 14px;
}

/* Orders Table */
.pf-orders {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    overflow: hidden;
}

.pf-orders table {
    width: 100%;
    border-collapse: collapse;
}

.pf-orders th {
    background: var(--pf-lighter);
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-gray);
    text-transform: uppercase;
}

.pf-orders td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--pf-light);
    font-size: 14px;
}

.pf-orders tr:last-child td {
    border-bottom: none;
}

.pf-orders tr.pf-expandable {
    cursor: pointer;
}

.pf-orders tr.pf-expandable:hover {
    background: var(--pf-lighter);
}

.pf-order-items {
    background: var(--pf-lighter);
    font-size: 13px;
}

.pf-order-items td {
    padding: 10px 16px 10px 32px;
    color: var(--pf-gray);
}

/* Status Badges */
.pf-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pf-badge-pending {
    background: #fff3cd;
    color: #856404;
}

.pf-badge-completed {
    background: #d4edda;
    color: #155724;
}

.pf-badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.pf-badge-paid {
    background: #d4edda;
    color: #155724;
}

.pf-badge-unpaid {
    background: #fff3cd;
    color: #856404;
}

.pf-badge-active {
    background: #cce5ff;
    color: #004085;
}

.pf-badge-closed {
    background: #e2e3e5;
    color: #383d41;
}

.pf-badge-drawn {
    background: #dcd6f7;
    color: #4a3db5;
}

.pf-badge-winner {
    background: #ffd700;
    color: #5a4a00;
}

/* Competition Single */
.pf-comp-single {
    max-width: 900px;
    margin: 0 auto;
}

.pf-comp-single-hero {
    margin-bottom: 32px;
}

.pf-comp-single-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--pf-radius);
    background: var(--pf-lighter);
}

.pf-comp-single-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--pf-primary-light), var(--pf-primary));
    border-radius: var(--pf-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pf-white);
    font-size: 60px;
}

.pf-comp-single-header {
    margin-top: 24px;
}

.pf-comp-single-title {
    margin: 0 0 8px;
    font-size: 32px;
    color: var(--pf-dark);
}

.pf-comp-single-prize {
    font-size: 20px;
    color: var(--pf-primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.pf-comp-single-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.pf-comp-single-detail {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    padding: 16px;
    text-align: center;
}

.pf-comp-single-detail .pf-label {
    font-size: 11px;
    color: var(--pf-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pf-comp-single-detail .pf-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--pf-dark);
}

.pf-comp-single-description {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    padding: 24px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--pf-dark);
}

.pf-comp-single-question {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.pf-comp-single-question h3 {
    margin: 0 0 12px;
}

.pf-comp-single-actions {
    display: flex;
    gap: 12px;
}

.pf-comp-single-closed {
    text-align: center;
    padding: 24px;
    background: var(--pf-lighter);
    border-radius: var(--pf-radius);
}

.pf-comp-single-closed h3 {
    margin: 0;
    color: var(--pf-gray);
}

.pf-comp-single-winner {
    text-align: center;
    padding: 24px;
    background: #fff9e6;
    border-radius: var(--pf-radius);
    border: 2px solid var(--pf-warning);
}

.pf-comp-single-winner h3 {
    margin: 0 0 4px;
    color: #5a4a00;
}

#pf-admin-competition-editor,
#pf-admin-competition-editor input,
#pf-admin-competition-editor textarea,
#pf-admin-competition-editor select,
#pf-admin-competition-editor label,
#pf-admin-competition-editor th,
#pf-admin-competition-editor td {
    color: var(--pf-dark) !important;
    background-color: var(--pf-white);
}

#pf-admin-competition-editor input,
#pf-admin-competition-editor textarea,
#pf-admin-competition-editor select {
    background-color: var(--pf-white);
    border: 2px solid var(--pf-light);
}

#pf-admin-competition-editor input[type="radio"] {
    background: none;
}

/* Clean wpadminbar offset fix */
body.admin-bar .pf-modal {
    top: 32px;
}

/* Toast Notification */
.pf-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--pf-radius-sm);
    color: var(--pf-white);
    font-weight: 600;
    font-size: 14px;
    z-index: 100000;
    animation: pf-slide-up 0.25s ease;
    box-shadow: var(--pf-shadow-lg);
}

.pf-toast-success {
    background: var(--pf-success);
}

.pf-toast-error {
    background: var(--pf-danger);
}

.pf-toast-info {
    background: var(--pf-dark);
}

/* Empty state */
.pf-empty {
    text-align: center;
    padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .pf-dashboard-grid,
    .pf-competitions-grid,
    .pf-overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-checkout-grid {
        grid-template-columns: 1fr;
    }

    .pf-comp-single-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-comp-single-image {
        height: 250px;
    }

    .pf-row {
        flex-direction: column;
        gap: 0;
    }

    .pf-col-6 {
        flex: none;
    }

    .pf-tabs-nav {
        overflow-x: auto;
    }

    .pf-tab-btn {
        white-space: nowrap;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .pf-container {
        padding: 20px 12px;
    }

    .pf-auth-card {
        padding: 24px;
    }

    .pf-dashboard-grid,
    .pf-competitions-grid,
    .pf-overview-cards {
        grid-template-columns: 1fr;
    }

    .pf-competitions-filters {
        flex-direction: column;
    }

    .pf-competitions-filters .pf-sort {
        width: 100%;
    }

    .pf-comp-single-meta {
        grid-template-columns: 1fr;
    }

    .pf-comp-single-image {
        height: 200px;
    }

    .pf-comp-single-title {
        font-size: 24px;
    }

    .pf-cart-actions {
        flex-direction: column;
        gap: 12px;
    }

    .pf-cart-actions .pf-btn {
        width: 100%;
    }
}

/* Credit Packs */
.pf-credits-header {
    text-align: center;
    margin-bottom: 32px;
}

.pf-credits-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    color: var(--pf-dark);
}

.pf-credits-header p {
    color: var(--pf-gray);
    margin: 8px 0 0;
}

.pf-credits-balance-bar {
    display: inline-block;
    background: var(--pf-lighter);
    padding: 10px 24px;
    border-radius: 24px;
    margin: 12px 0 16px;
    font-size: 14px;
    color: var(--pf-dark);
}

.pf-credits-balance-bar strong {
    color: var(--pf-primary);
    font-size: 16px;
}

.pf-credit-packs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pf-credit-pack-card {
    background: var(--pf-white);
    border-radius: 20px;
    box-shadow: var(--pf-shadow);
    padding: 32px 24px 24px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    border: 2px solid var(--pf-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.pf-credit-pack-card:hover,
.pf-credit-pack-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.14);
    border-color: var(--pf-primary-light);
}

.pf-credit-pack-card.pf-pack-featured {
    border: 2px solid var(--pf-primary);
    background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 100%);
    box-shadow: 0 0 0 4px rgba(108,92,231,0.12), 0 12px 36px rgba(0,0,0,0.12);
    z-index: 1;
}

.pf-pack-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(108,92,231,0.25);
}

.pf-pack-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.pf-pack-name {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--pf-dark);
}

.pf-pack-price-block {
    margin: 8px 0 16px;
}

.pf-pack-price {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--pf-dark);
    line-height: 1;
}

.pf-pack-payment-type {
    display: block;
    font-size: 13px;
    color: var(--pf-gray);
    margin-top: 4px;
}

.pf-pack-tokens {
    font-size: 42px;
    font-weight: 800;
    color: var(--pf-primary);
    margin: 6px 0 8px;
    line-height: 1.1;
}

.pf-pack-breakdown {
    font-size: 14px;
    color: var(--pf-gray);
    margin: 0 0 14px;
    line-height: 1.5;
    min-height: 42px;
}

.pf-pack-desc {
    font-size: 13px;
    color: var(--pf-gray);
    margin: 0 0 14px;
    font-style: italic;
}

.pf-pack-value {
    margin: auto 0 20px;
    padding: 12px;
    background: var(--pf-lighter);
    border-radius: 14px;
}

.pf-pack-saving {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--pf-success);
    margin-bottom: 2px;
}

.pf-pack-effective {
    display: block;
    font-size: 13px;
    color: var(--pf-gray);
}

.pf-credit-pack-card .pf-btn {
    min-height: 50px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 15px;
    margin-top: auto;
}

.pf-credit-pack-card .pf-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.pf-credits-info {
    max-width: 800px;
    margin: 48px auto 0;
    background: var(--pf-white);
    border-radius: 20px;
    box-shadow: var(--pf-shadow);
    padding: 28px 32px;
    border: 1px solid var(--pf-light);
}

.pf-credits-info h2 {
    margin: 0 0 16px;
    font-size: 20px;
    color: var(--pf-dark);
}

.pf-credits-info ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--pf-gray);
    font-size: 15px;
    line-height: 1.7;
}

.pf-credits-info li {
    margin-bottom: 8px;
}

.pf-credits-info a {
    color: var(--pf-primary);
    text-decoration: underline;
}

.pf-credits-disclaimer {
    margin: 0;
    font-size: 13px;
    color: var(--pf-gray);
    font-style: italic;
}

@media (max-width: 1024px) {
    .pf-credit-packs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pf-credit-packs-grid {
        grid-template-columns: 1fr;
        padding: 0 8px;
    }

    .pf-credit-pack-card {
        padding: 28px 20px 22px;
    }

    .pf-credit-pack-card .pf-btn {
        min-height: 54px;
        font-size: 16px;
    }

    .pf-pack-badge {
        top: 12px;
        right: 12px;
        padding: 4px 10px;
        font-size: 10px;
    }

    /* Mobile order: Most Popular, Standard, Starter, Best Value */
    .pf-pack-most-popular-bundle { order: 1; }
    .pf-pack-standard-bundle { order: 2; }
    .pf-pack-starter-bundle { order: 3; }
    .pf-pack-best-value-bundle { order: 4; }
}

/* Credit Balance */
.pf-credit-balance-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--pf-primary);
    margin: 8px 0 12px;
}

.pf-credit-balance-card {
    border-top: 3px solid #fdcb6e;
}

/* Cost Estimate */
.pf-estimate {
    font-size: 11px;
    color: var(--pf-gray);
    margin-top: 2px;
}

/* Insufficient Balance Warning */
.pf-banner-warning {
    border-left: 4px solid var(--pf-warning);
}

/* Credit History */
.pf-credit-history table {
    width: 100%;
    border-collapse: collapse;
}

.pf-credit-history th {
    background: var(--pf-lighter);
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-gray);
    text-transform: uppercase;
}

.pf-credit-history td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--pf-light);
    font-size: 14px;
}

.pf-credit-history tr:last-child td {
    border-bottom: none;
}

.pf-credit-positive {
    color: var(--pf-success);
    font-weight: 600;
}

.pf-credit-negative {
    color: var(--pf-danger);
    font-weight: 600;
}

