/* ==========================================
   Buttons & Badges
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 0.5rem;
    white-space: nowrap;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.btn-icon-text {
    padding: 0.6rem 1.2rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--glow-blue), var(--shadow-md);
    transform: scale(1.03);
}

.btn-secondary {
    background: var(--bg-btn-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-btn-secondary-hover);
    border-color: var(--border-color-hover);
}

.btn-danger {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--color-danger);
}

.btn-danger:hover {
    background: var(--color-danger);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
}

.icon {
    width: 1.1rem;
    height: 1.1rem;
}

.btn-icon {
    width: 1.2rem;
    height: 1.2rem;
}

/* Platform Badge */
.platform-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.platform-badge.mobile {
    background: rgba(255, 159, 67, 0.15);
    color: var(--color-mobile);
}

.platform-badge.pc {
    background: rgba(10, 190, 227, 0.15);
    color: var(--color-pc);
}

.platform-badge.console {
    background: rgba(238, 82, 83, 0.15);
    color: var(--color-console);
}

/* ==========================================
   Search Container
   ========================================== */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.search-container input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 1rem 3rem 1rem 3.25rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
    outline: none;
    transition: all var(--transition-fast);
}

.search-container input:focus {
    background: var(--bg-input-focus);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.search-container input:focus + .search-icon {
    color: var(--accent-blue);
}

.search-clear-btn {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    line-height: 1;
}

.search-clear-btn:hover {
    color: var(--text-primary);
}

.search-container.has-value .search-clear-btn {
    display: block;
}

/* ==========================================
   Filter Wrapper (Platform & Sorting)
   ========================================== */
.filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.platform-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: var(--glow-blue);
}

/* ==========================================
   Custom Dropdown Component
   ========================================== */
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: auto;
}

.dropdown-trigger {
    width: auto;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    padding-right: 2.8rem;
    border-radius: var(--radius-md);
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    position: relative;
    text-align: left;
}

.dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.custom-dropdown.active .dropdown-trigger {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    box-shadow: var(--glow-blue);
}

.dropdown-chevron {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
    color: var(--text-secondary);
}

.dropdown-trigger:hover .dropdown-chevron {
    color: var(--text-primary);
}

.custom-dropdown.active .dropdown-chevron {
    transform: translateY(-50%) rotate(180deg);
    color: var(--accent-blue);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    min-width: 100%;
    background: var(--bg-modal);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 150;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.custom-dropdown.active .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: rgba(0, 242, 254, 0.08);
    color: var(--accent-blue);
    font-weight: 600;
}

/* ==========================================
   Coupon Grid & Cards
   ========================================== */
.coupon-section {
    position: relative;
    min-height: 300px;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    transition: opacity var(--transition-normal);
}

.coupon-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-normal);
    box-shadow: var(--glow-card), var(--shadow-sm);
    position: relative;
}

.coupon-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.05);
}

/* Card Header */
.card-header {
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.card-title-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.game-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #1a1c29;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent-blue);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.card-title-details {
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.platform-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-bookmark {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 4px;
}

.btn-bookmark:hover {
    color: var(--accent-pink);
    transform: scale(1.1);
}

.btn-bookmark.active {
    color: var(--accent-pink);
}

.btn-used {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-used:hover {
    color: #2ecc71;
    transform: scale(1.1);
}

.btn-used.active {
    color: #2ecc71;
}

.btn-used.active svg {
    stroke: #2ecc71;
    filter: drop-shadow(0 0 3px rgba(46, 204, 113, 0.4));
}

.coupon-card.used {
    border-color: rgba(46, 204, 113, 0.4) !important;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.15);
    position: relative;
}

/* Card content blurring when marked as used */
.coupon-card.used .game-thumbnail,
.coupon-card.used .card-title-details,
.coupon-card.used .card-body,
.coupon-card.used .card-footer {
    filter: blur(2px);
    opacity: 0.4;
    pointer-events: none;
}

.coupon-card.report-blocked {
    border-color: rgba(255, 51, 102, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.15);
    position: relative;
}

/* Card content blurring when report blocked */
.coupon-card.report-blocked .game-thumbnail,
.coupon-card.report-blocked .card-title-details,
.coupon-card.report-blocked .card-body,
.coupon-card.report-blocked .card-footer {
    filter: blur(4px);
    opacity: 0.2;
    pointer-events: none;
}

/* Centered "사용 완료" overlay text */
.coupon-card.used::after {
    content: "사용 완료";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2ecc71;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    z-index: 10;
    pointer-events: none;
    background: rgba(13, 15, 24, 0.6);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(46, 204, 113, 0.3);
}

/* Card Body */
.card-body {
    padding: 0 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reward-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
    line-height: 1.4;
}

.code-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.coupon-code {
    font-family: 'Outfit', monospace;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 2px;
}

.btn-copy:hover {
    color: var(--accent-blue);
}

/* Card Footer */
.card-footer {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.expiry-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.expiry-badge.warning {
    color: var(--color-warning);
}

.expiry-badge.danger {
    color: var(--color-danger);
}

.expiry-badge.expired {
    color: var(--text-muted);
    text-decoration: line-through;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================
   Loading & Empty States
   ========================================== */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* ==========================================
   Toast Notifications
   ========================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: rgba(15, 17, 26, 0.9);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--accent-blue);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: var(--color-success);
}

.toast-error {
    border-left-color: var(--color-danger);
}

/* ==========================================
   Modal Overlay & Content
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 8, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-platform-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-game-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.info-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
}

.reward-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-code-wrapper {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-code-wrapper code {
    font-family: 'Outfit', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.instructions-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.modal-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

/* ==========================================
   Responsive Grid & Modal Adjustments
   ========================================== */
@media (max-width: 920px) {
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-actions-right {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        gap: 0.75rem;
    }
    
    .platform-filters {
        display: flex;
        width: 100%;
        gap: 0.35rem;
    }
    
    .platform-filters .filter-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .filter-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .dropdown-trigger {
        padding: 0.5rem 0.8rem;
        padding-right: 2.2rem;
        font-size: 0.8rem;
        min-width: unset;
    }
    
    .dropdown-chevron {
        right: 0.8rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .coupon-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* ==========================================
   Autocomplete & Bookmark Management
   ========================================== */
.autocomplete-wrapper {
    position: relative;
    margin-top: 0.5rem;
    width: 100%;
}

.autocomplete-list {
    background: rgba(15, 17, 26, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: var(--shadow-md);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

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

.autocomplete-item:hover {
    background: rgba(0, 242, 254, 0.08);
}

.autocomplete-game-title {
    font-weight: 500;
    color: var(--text-primary);
}

.autocomplete-action {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.autocomplete-item:hover .autocomplete-action {
    color: var(--accent-blue);
}

.autocomplete-action.active {
    color: var(--accent-pink) !important;
}

.bookmarked-games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
}

.bookmark-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: #c77dff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.bookmark-tag:hover {
    border-color: var(--accent-pink);
    color: var(--text-primary);
}

.bookmark-tag-remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
}

.bookmark-tag-remove:hover {
    color: var(--color-danger);
}

.autocomplete-no-result {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   Form Controls & Inputs
   ========================================== */
.form-input {
    width: 100%;
    height: 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus {
    background: var(--bg-input-focus);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.form-input-code {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-textarea {
    width: 100%;
    height: 80px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    outline: none;
    resize: none;
    line-height: 1.5;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.form-textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

/* ==========================================
   User Authentication & Creator Styles
   ========================================== */
.user-status-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-display-name {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.auth-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: normal;
    cursor: pointer;
    padding-bottom: 0.25rem;
    position: relative;
    transition: all var(--transition-fast);
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    color: var(--text-primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.55rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: var(--shadow-blue);
}

/* Coupon Card Creator Info */
.coupon-creator-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.coupon-creator-badge.admin {
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

.btn-ban-user {
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    margin-left: 0.25rem;
}

.btn-ban-user:hover {
    background: var(--color-danger);
    color: #fff;
    box-shadow: var(--shadow-danger);
}

/* ==========================================
   Custom Datepicker Modal
   ========================================== */
.dp-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    user-select: none;
}

.dp-day:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dp-day.active {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: var(--glow-blue);
    font-weight: bold;
}

.dp-day.other-month {
    color: var(--text-muted);
    opacity: 0.3;
}

.dp-day.today {
    border-color: var(--accent-blue);
}

/* ==========================================
   Multi-Platform Checkbox Chips & Tag Badges
   ========================================== */
.platform-checkbox-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.chip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px; /* Matches .form-input height exactly */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    user-select: none;
    width: 100%;
}

.platform-chip-label input[type="checkbox"] {
    display: none;
}

.platform-chip-label input[type="checkbox"]:checked + .chip-btn {
    background: rgba(0, 242, 254, 0.12) !important;
    border-color: var(--accent-blue) !important;
    color: var(--accent-blue) !important;
    box-shadow: var(--glow-blue);
}

.platform-chip-label:hover .chip-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.platform-chip-label:hover input[type="checkbox"]:checked + .chip-btn {
    background: rgba(0, 242, 254, 0.18) !important;
    border-color: var(--accent-blue) !important;
}

/* Coupon Card Footer Platform Tag Badges */
.platform-badge-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-badge-tag.mobile {
    background: rgba(255, 159, 67, 0.12);
    color: var(--color-mobile);
    border: 1px solid rgba(255, 159, 67, 0.25);
}

.platform-badge-tag.pc {
    background: rgba(10, 190, 227, 0.12);
    color: var(--color-pc);
    border: 1px solid rgba(10, 190, 227, 0.25);
}

.platform-badge-tag.console {
    background: rgba(238, 82, 83, 0.12);
    color: var(--color-console);
    border: 1px solid rgba(238, 82, 83, 0.25);
}

/* Detail Modal Platform Tags */
.modal-platform-badge-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-platform-badge-tag.mobile {
    background: rgba(255, 159, 67, 0.15);
    color: var(--color-mobile);
    border: 1px solid rgba(255, 159, 67, 0.3);
}

.modal-platform-badge-tag.pc {
    background: rgba(10, 190, 227, 0.15);
    color: var(--color-pc);
    border: 1px solid rgba(10, 190, 227, 0.3);
}

.modal-platform-badge-tag.console {
    background: rgba(238, 82, 83, 0.15);
    color: var(--color-console);
    border: 1px solid rgba(238, 82, 83, 0.3);
}

/* Admin Modal Tab Buttons */
.admin-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    margin-bottom: -0.5rem;
}

.admin-tab-btn:hover {
    color: var(--text-primary);
}

.admin-tab-btn.active {
    color: var(--accent-purple);
    border-bottom: 2px solid var(--accent-purple);
    font-weight: 700;
}

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

.admin-tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Report Modal Styles */
#report-expired-btn.active {
    background: rgba(0, 242, 254, 0.15) !important;
    border-color: var(--accent-blue) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15) !important;
}

#report-fake-btn.active {
    background: rgba(255, 51, 102, 0.15) !important;
    border-color: var(--color-danger) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.1) !important;
}

/* Autocomplete Suggestions */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-tooltip);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.autocomplete-item {
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.autocomplete-item:hover {
    background: var(--bg-btn-secondary-hover);
}

/* ==========================================
   Light Theme Overrides
   ========================================== */
.light-theme body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.light-theme .app-header {
    background: rgba(245, 247, 251, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.light-theme .glass-panel {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: var(--shadow-md) !important;
}

.light-theme .modal-content {
    background: var(--bg-modal) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
}

.light-theme .modal-content h2,
.light-theme .modal-content h3,
.light-theme .modal-content h4 {
    color: var(--text-primary) !important;
}

.light-theme .modal-content p {
    color: var(--text-secondary) !important;
}

.light-theme .user-status-container {
    background: var(--bg-user-status) !important;
    border-color: var(--border-user-status) !important;
}

.light-theme #attendance-btn {
    background: rgba(250, 204, 21, 0.1) !important;
    border-color: rgba(250, 204, 21, 0.3) !important;
}

.light-theme #admin-panel-btn {
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: rgba(168, 85, 247, 0.25) !important;
}

.light-theme #profile-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.light-theme #guide-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-secondary) !important;
}

.light-theme #guide-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
}

.light-theme .stat-card,
.light-theme .chart-card {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

.light-theme .profile-info-card {
    background: var(--bg-profile-info) !important;
    border-color: var(--border-profile-info) !important;
}

.light-theme .admin-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.light-theme .admin-table th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: var(--text-primary) !important;
}

.light-theme .autocomplete-list {
    background: var(--bg-tooltip) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

.light-theme .autocomplete-item:hover {
    background: var(--bg-btn-secondary-hover) !important;
}

.light-theme .app-footer {
    background: #f1f3f7;
    border-top: 1px solid var(--border-color);
}

.light-theme .coupon-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 0 20px rgba(0, 242, 254, 0.03) !important;
}

.light-theme ::-webkit-scrollbar-track {
    background: #f5f7fb;
}

.light-theme ::-webkit-scrollbar-thumb {
    background: #e2e8f0;
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.light-theme .bg-glow {
    opacity: 0.08;
}

.light-theme .coupon-creator-badge {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: var(--text-primary);
}

/* ==========================================
   Notice (Announcements) Accordion Styles
   ========================================== */
.notice-item {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.25s ease;
}

.notice-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.notice-item.active {
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.notice-item-header {
    padding: 0.9rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 0.75rem;
    user-select: none;
}

.notice-item-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
    min-width: 0;
}

.notice-item-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

.notice-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-item.active .notice-item-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.notice-item-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.btn-notice-delete {
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-notice-delete:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.5);
}

.notice-item-toggle-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.notice-item.active .notice-item-toggle-icon {
    transform: rotate(180deg);
    color: var(--text-primary);
}

.notice-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out, padding 0.25s ease;
    padding: 0 1.1rem;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.notice-item.active .notice-item-content {
    max-height: 1000px;
    padding: 0.8rem 1.1rem 1.1rem 1.1rem;
    border-top-color: rgba(255, 255, 255, 0.05);
    transition: max-height 0.3s ease-in, padding 0.25s ease;
}

/* Light Theme overrides */
.light-theme .notice-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}
.light-theme .notice-item:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}
.light-theme .notice-item.active {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.light-theme .notice-item.active .notice-item-content {
    border-top-color: rgba(0, 0, 0, 0.06);
}


