/*
Theme Name: FreeGiftZone App
Theme URI: https://freegiftzone.in
Author: FreeGiftZone
Author URI: https://freegiftzone.in
Description: Custom WordPress theme for FreeGiftZone rewards app with Supabase integration
Version: 1.0.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fgz-app
*/

/* ==========================================================================
   CSS Variables & Theme Tokens
   ========================================================================== */

:root {
    /* Light Mode Colors */
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 35%; /* Darkened from 46.9% for better contrast */
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;

    /* Font */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.dashboard-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: hsl(var(--muted) / 0.4);
}

.sidebar {
    display: none;
    width: 16rem;
    flex-direction: column;
    border-right: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    position: fixed;
    inset: 0;
    z-index: 50;
}

@media (min-width: 768px) {
    .sidebar {
        display: flex;
    }
}

.main-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 768px) {
    .main-content {
        padding-left: 16rem;
    }
}

.main-inner {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .main-inner {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    height: 3.5rem;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .header-inner {
        padding: 0 1.5rem;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.points-badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background-color: hsl(var(--secondary) / 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid hsl(var(--border) / 0.5);
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

@media (min-width: 768px) {
    .points-badge {
        display: flex;
    }
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */

.sidebar-inner {
    padding: 1rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    margin-bottom: 3.5rem;
}

.sidebar-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    color: hsl(var(--muted-foreground));
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: hsl(var(--primary));
    background-color: hsl(var(--primary) / 0.1);
}

.nav-link.active {
    color: hsl(var(--primary));
    background-color: hsl(var(--primary) / 0.1);
}

.nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.nav-link .icon-dashboard {
    color: #0ea5e9;
}

.nav-link .icon-earn {
    color: #8b5cf6;
}

.nav-link .icon-redeem {
    color: #c2410c;
}

.nav-link .icon-leaderboard {
    color: #10b981;
}

.nav-link .icon-referrals {
    color: #ca8a04;
}

.nav-link .icon-history {
    color: #6b7280;
}

.nav-link .icon-profile {
    color: #3b82f6;
}

.nav-link .icon-giveaway {
    color: #ec4899;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: none;
    padding: 0.5rem 1rem;
    height: 2.5rem;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

.btn-ghost {
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-destructive {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover {
    background-color: hsl(var(--destructive) / 0.9);
}

.btn-outline {
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-icon {
    height: 2.5rem;
    width: 2.5rem;
    padding: 0;
}

.btn-sm {
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: calc(var(--radius) - 4px);
}

.btn-lg {
    height: 2.75rem;
    padding: 0 2rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
}

.card-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.card-content {
    padding: 1.5rem;
    padding-top: 0;
}

.card-footer {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    padding-top: 0;
}

/* Stat Cards */
.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card-icon {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--muted-foreground));
}

/* NEW Badge */
.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    border-radius: 9999px;
    margin-left: 0.5rem;
    animation: new-badge-pulse 2s ease-in-out infinite;
}

@keyframes new-badge-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.input {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
    color: hsl(var(--muted-foreground));
}

.input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: hsl(var(--foreground));
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-error {
    font-size: 0.875rem;
    color: hsl(var(--destructive));
}

/* ==========================================================================
   Avatar
   ========================================================================== */

.avatar {
    position: relative;
    display: flex;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 9999px;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
}

.avatar-md {
    width: 2.5rem;
    height: 2.5rem;
}

.avatar-lg {
    width: 3rem;
    height: 3rem;
}

.avatar img {
    aspect-ratio: 1/1;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.avatar-fallback {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #6366f1, #9333ea);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==========================================================================
   Dropdown Menu
   ========================================================================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    min-width: 14rem;
    background-color: hsl(var(--popover));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    z-index: 100;
    overflow: hidden;
}

.dropdown.open .dropdown-content {
    display: block;
}

.dropdown-label {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.dropdown-item:hover {
    background-color: hsl(var(--accent));
}

.dropdown-item svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.dropdown-item.destructive {
    color: hsl(var(--destructive));
}

.dropdown-separator {
    height: 1px;
    background-color: hsl(var(--border));
    margin: 0.25rem 0;
}

/* ==========================================================================
   Mobile Sidebar Overlay
   ========================================================================== */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgb(0 0 0 / 0.5);
    z-index: 40;
}

.sidebar-overlay.open {
    display: block;
}

.mobile-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 16rem;
    background-color: hsl(var(--card));
    border-right: 1px solid hsl(var(--border));
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-sidebar.open {
    transform: translateX(0);
}

@media (min-width: 768px) {

    .sidebar-overlay,
    .mobile-sidebar {
        display: none !important;
    }
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tabs {
    display: flex;
    flex-direction: column;
}

.tabs-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background-color: hsl(var(--muted));
    padding: 0.25rem;
    width: 100%;
}

.tab-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 4px);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background: transparent;
    border: none;
    transition: all 0.15s ease;
}

.tab-trigger:hover {
    color: hsl(var(--foreground));
}

.tab-trigger.active {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.tab-content {
    margin-top: 0.5rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

@media (max-width: 640px) {
    .tabs-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .tab-trigger {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-container {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    caption-side: bottom;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.table th {
    height: 3rem;
    padding: 0 1rem;
    text-align: left;
    vertical-align: middle;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    border-bottom: 1px solid hsl(var(--border));
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid hsl(var(--border));
}

.table tbody tr:hover {
    background-color: hsl(var(--muted) / 0.5);
}

@media (max-width: 768px) {
    .table-container {
        overflow-x: visible;
    }

    .table {
        border-collapse: separate;
        border-spacing: 0 0.75rem;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        border: 1px solid hsl(var(--border));
        border-radius: calc(var(--radius) - 2px);
        background-color: hsl(var(--card));
        margin-bottom: 0.75rem;
        overflow: hidden;
        box-shadow: 0 8px 20px hsl(var(--foreground) / 0.06);
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid hsl(var(--border));
        flex-wrap: wrap;
    }

    .table tbody tr:last-child {
        margin-bottom: 0;
    }

    .table tbody td:last-child {
        border-bottom: none;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: hsl(var(--muted-foreground));
        flex-shrink: 0;
    }

    .table tbody td[data-label=""] {
        justify-content: center;
    }

    .table tbody td[data-label=""]::before {
        content: "";
    }
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.badge-default {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.badge-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.badge-success {
    background-color: #22c55e;
    color: white;
}

.badge-destructive {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.badge-outline {
    border: 1px solid hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
}

/* ==========================================================================
   Modal / Dialog
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    display: flex;
}

.card-premium {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal {
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border) / 0.8);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 30rem;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.5rem;
    text-align: center;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
}

.modal-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.modal-content {
    padding: 0 1.5rem 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: calc(var(--radius) - 4px);
    opacity: 0.7;
    transition: opacity 0.15s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.modal-close:hover {
    opacity: 1;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid hsl(var(--muted));
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg,
            hsl(var(--muted)) 25%,
            hsl(var(--muted) / 0.5) 50%,
            hsl(var(--muted)) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: calc(var(--radius) - 2px);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================================
   Auth Pages
   ========================================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: hsl(var(--background));
}

.auth-card {
    width: 100%;
    max-width: 24rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: block;
    margin: 0 auto 1rem;
    height: 2.5rem;
    width: auto;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-subtitle {
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: hsl(var(--border));
}

.auth-divider span {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background-color: white;
    color: #1f1f1f;
    border: 1px solid hsl(var(--border));
}

.btn-google:hover {
    background-color: #f5f5f5;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rounded {
    border-radius: var(--radius);
}

.rounded-full {
    border-radius: 9999px;
}

.hidden {
    display: none;
}

.glass {
    background: hsl(var(--card) / 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border) / 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.p-5 {
    padding: 1.25rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.gap-3\.5 {
    gap: 0.875rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ==========================================================================
   Blog Reading Progress Bar
   ========================================================================== */

.blog-reading-progress-wrap {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: hsl(var(--border));
    z-index: 60;
}

.blog-reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    transition: width 0.15s ease-out;
    border-radius: 0 2px 2px 0;
}

/* ==========================================================================
   Blog Styles (WordPress Posts)
   ========================================================================== */

.blog-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-meta {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.blog-content {
    line-height: 1.75;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content a {
    color: hsl(222.2 47.4% 30%);
    text-decoration: underline;
}

.blog-content code {
    background-color: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.875em;
}

.blog-content pre {
    background-color: hsl(var(--muted));
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1rem;
}

.blog-content blockquote {
    border-left: 4px solid hsl(var(--border));
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: hsl(var(--muted-foreground));
}

/* Blog Archive / List */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card-title a:hover {
    color: hsl(var(--primary));
}

.blog-card-excerpt {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.blog-card-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Premium UI Extensions
   ========================================================================== */

:root {
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --premium-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}

/* Glassmorphism */
.glass {
    background: var(--glass-background);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Gradients */
.text-gradient {
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-premium {
    background: var(--premium-gradient);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-soft {
    animation: pulse-soft 2s infinite ease-in-out;
}

/* Component Enhancements */
.card-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid hsl(var(--border) / 0.6);
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    border-color: hsl(var(--primary) / 0.2);
}

.btn-premium {
    background: var(--premium-gradient);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
    border: none;
}

.btn-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
    opacity: 0.95;
}

/* ==========================================================================
   Redeem UI Specifics
   ========================================================================== */

.redeem-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311060 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(49, 46, 129, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.redeem-hero-bg-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.redeem-hero-blob-1 {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
}
.redeem-hero-blob-2 {
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
}


.giveaway-schedule-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.giveaway-schedule-strip > div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.85rem;
    text-align: center;
}

.giveaway-schedule-strip span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.giveaway-schedule-strip strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.giveaway-rules-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.giveaway-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
}

.giveaway-rule-item + .giveaway-rule-item {
    border-top: 1px solid hsl(var(--border));
}

.giveaway-rule-dot {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.75rem;
    font-weight: 800;
}

.giveaway-rule-item p {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.5;
}

.giveaway-rule-item strong {
    color: hsl(var(--foreground));
}

@media (max-width: 640px) {
    .giveaway-schedule-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.balance-glow-text {
    text-shadow: 0 0 15px rgba(234, 179, 8, 0.35);
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.redeem-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .redeem-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.redeem-option-card {
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--card));
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.005);
    max-width: 540px;
    width: 100%;
}

.redeem-option-card:hover {
    transform: translateY(-5px);
}

.redeem-option-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.redeem-option-card:hover .redeem-option-icon-wrap {
    transform: scale(1.05);
}

.redeem-value-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: hsl(var(--card-foreground));
    letter-spacing: -0.02em;
}

.redeem-points-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: hsl(var(--muted) / 0.5);
    color: hsl(var(--muted-foreground));
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
    border: 1px solid hsl(var(--border) / 0.4);
}

.redeem-points-chip svg {
    width: 0.875rem;
    height: 0.875rem;
    color: #eab308;
}

/* Gamified Progress Bar */
.redeem-progress-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.redeem-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
}

.redeem-progress-bar {
    height: 4px;
    background-color: hsl(var(--muted));
    border-radius: 9999px;
    overflow: hidden;
    width: 100%;
}

.redeem-progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Brand Variations */
.card-google-play {
    border-color: hsl(142.1 76.2% 36.3% / 0.1);
}
.card-google-play:hover {
    box-shadow: 0 15px 30px -10px hsl(142.1 76.2% 36.3% / 0.06);
    border-color: hsl(142.1 76.2% 36.3% / 0.25);
}
.card-google-play .redeem-option-icon-wrap {
    background: hsl(142.1 76.2% 36.3% / 0.05);
    border: 1px solid hsl(142.1 76.2% 36.3% / 0.15);
}
.card-google-play .redeem-progress-bar-fill {
    background: #10b981;
}
.card-google-play .badge-outline {
    border-color: hsl(142.1 76.2% 36.3% / 0.2);
    color: #059669;
    background-color: hsl(142.1 76.2% 36.3% / 0.04);
}

.card-paypal {
    border-color: hsl(221.2 83.2% 53.3% / 0.1);
}
.card-paypal:hover {
    box-shadow: 0 15px 30px -10px hsl(221.2 83.2% 53.3% / 0.06);
    border-color: hsl(221.2 83.2% 53.3% / 0.25);
}
.card-paypal .redeem-option-icon-wrap {
    background: hsl(221.2 83.2% 53.3% / 0.05);
    border: 1px solid hsl(221.2 83.2% 53.3% / 0.15);
}
.card-paypal .redeem-progress-bar-fill {
    background: #3b82f6;
}
.card-paypal .badge-outline {
    border-color: hsl(221.2 83.2% 53.3% / 0.2);
    color: #1d4ed8;
    background-color: hsl(221.2 83.2% 53.3% / 0.04);
}

.badge-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Modal Form Styles */
.form-group input.input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.email-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
    transition: all 0.2s ease;
}
.email-match-badge.success {
    color: #10b981;
}
.email-match-badge.error {
    color: #ef4444;
}

/* Coupon Ticket Style for Success Display */
.coupon-ticket {
    background: hsl(var(--muted) / 0.4);
    border: 2px dashed #8b5cf6;
    border-radius: 1rem;
    padding: 1.25rem;
    position: relative;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #8b5cf6;
    text-align: center;
    margin: 1.5rem 0;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.06);
    overflow: hidden;
}
.coupon-ticket::before, .coupon-ticket::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: hsl(var(--background));
    border-radius: 50%;
    margin-top: -8px;
    border: 1px solid hsl(var(--border) / 0.5);
}
.coupon-ticket::before {
    left: -9px;
}
.coupon-ticket::after {
    right: -9px;
}

/* Custom button shapes for cards */
.redeem-option-card .btn {
    border-radius: 9999px !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    transition: all 0.2s ease;
}

.redeem-option-card .btn:disabled {
    background-color: hsl(var(--muted) / 0.4) !important;
    border: 1px solid hsl(var(--border) / 0.8) !important;
    color: hsl(var(--muted-foreground)) !important;
    cursor: not-allowed;
    opacity: 0.85;
    box-shadow: none !important;
}
