* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-title {
    font-size: 3em;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
    flex: 1;
    min-width: 300px;
}

.auth-status {
    display: none;
    align-items: center;
    gap: 15px;
}

.auth-username {
    font-weight: 600;
    color: #667eea;
    font-size: 1em;
}

.login-prompt {
    display: none;
}

header h1 {
    font-size: 3em;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-weight: 800;
    letter-spacing: -1px;
}

.filter-container {
    margin-bottom: 30px;
    text-align: center;
}

.filter-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.filter-container label {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.set-filter {
    padding: 14px 24px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    color: #333;
    cursor: pointer;
    min-width: 320px;
    max-width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.set-filter:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.set-filter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

#set-filter option.expansion-complete {
    color: #11998e;
    font-weight: 600;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.95;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gifts section */
.gifts-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(230, 230, 255, 0.8);
}

.gifts-section h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.gifts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gifts-empty {
    font-size: 0.95em;
    color: #777;
}

.gift-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
}

.gift-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.gift-card-image {
    width: 40px;
    height: 56px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    object-fit: cover;
}

.gift-text p {
    margin: 0;
}

.gift-text strong {
    color: #667eea;
}

.gift-meta {
    font-size: 0.85em;
    color: #555;
    margin-top: 2px;
}

.gift-date {
    font-size: 0.8em;
    color: #888;
    margin-top: 2px;
}

.gift-actions {
    display: flex;
    gap: 8px;
}

.gift-accept-button,
.gift-reject-button {
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.gift-accept-button {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.gift-accept-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(17, 153, 142, 0.35);
}

.gift-reject-button {
    background: #f3f3f7;
    color: #666;
    border: 1px solid #ddd;
}

.gift-reject-button:hover {
    background: #e8e8f0;
    transform: translateY(-1px);
}

.back-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.loading {
    text-align: center;
    padding: 80px 20px;
    color: white;
}

.loading p {
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.card-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.card-item:hover::before {
    opacity: 1;
}

.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 140%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-item:hover .card-image {
    transform: scale(1.08);
}

.card-info {
    padding: 20px;
    background: white;
}

.card-set {
    font-size: 0.9em;
    color: #555;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.card-number {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
    font-weight: 500;
}

.binder-position {
    font-size: 0.85em;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.purchase-links {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.purchase-link {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.85em;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    flex: 1;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cardmarket-link {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.cardmarket-link:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #dd4a5f 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
}

.cardtrader-link {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.cardtrader-link:hover {
    background: linear-gradient(135deg, #44a08d 0%, #3a8f7d 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(68, 160, 141, 0.4);
}

.cardtrader-override {
    background: #f3f3f7;
    color: #555;
    border: 1px dashed #667eea;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cardtrader-override:hover {
    background: #e8e8f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.collect-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.collect-button.collected {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.collect-button.not-collected {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    color: #666;
}

.collect-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.collect-button.collected:hover {
    background: linear-gradient(135deg, #0d7a70 0%, #2dd469 100%);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

.bought-badge {
    font-size: 0.85em;
    color: #ff9800;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 8px;
    border-left: 3px solid #ff9800;
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.collected-gifter-row {
    margin-top: 10px;
}

.collected-gifter-link {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px dashed rgba(102, 126, 234, 0.55);
    background: rgba(102, 126, 234, 0.06);
    color: #667eea;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, border-color 0.2s;
}

.collected-gifter-link:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: #667eea;
}

.gift-button {
    padding: 10px 12px;
    border-radius: 12px;
    border: none;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.gift-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.bought-button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bought-button.bought {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.bought-button.not-bought {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ff9800;
    border: 2px solid #ff9800;
}

.bought-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bought-button.bought:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.detail-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.6s ease-in;
}

.detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-image-container {
    position: sticky;
    top: 20px;
}

.clickable-detail-image {
    cursor: pointer;
}

.detail-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.detail-image-flip-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.detail-image:hover {
    transform: scale(1.02);
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-title {
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
}

.detail-section {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.detail-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.detail-section h3 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 700;
}

.detail-section p {
    color: #555;
    line-height: 1.8;
    font-size: 1em;
}

.binder-note {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
    margin-top: 5px;
}

.detail-collect-button {
    flex: 1;
    padding: 16px 32px;
    border: none;
    border-radius: 14px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-collect-button.collected {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.3);
}

.detail-collect-button.not-collected {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    color: #666;
}

.detail-collect-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.detail-collect-button.collected:hover {
    box-shadow: 0 8px 30px rgba(17, 153, 142, 0.4);
}

.detail-action-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 20px;
}

.detail-gift-button {
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-gift-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(245, 87, 108, 0.45);
}

.detail-gifter-button {
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px dashed rgba(102, 126, 234, 0.55);
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.detail-gifter-button:hover {
    background: rgba(102, 126, 234, 0.14);
    border-color: #667eea;
}

/* Gift modal (shared) */
.gift-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gift-modal {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 24px 20px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.gift-modal h3 {
    margin-bottom: 8px;
    font-size: 1.3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gift-modal p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 14px;
}

.override-card-id {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
}

.gift-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.95em;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gift-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.gift-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.gift-cancel-button,
.gift-confirm-button {
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gift-cancel-button {
    background: #f3f3f7;
    color: #666;
}

.gift-cancel-button:hover {
    background: #e4e4ee;
}

.gift-confirm-button {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.3);
}

.gift-confirm-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

.detail-bought-button {
    flex: 1;
    padding: 16px 32px;
    border: none;
    border-radius: 14px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-bought-button.bought {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
}

.detail-bought-button.not-bought {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ff9800;
    border: 2px solid #ff9800;
}

.detail-bought-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.detail-bought-button.bought:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.4);
}

.bought-status-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: #ff9800;
}

.bought-status-section h3 {
    color: #ff9800;
}

html {
    scroll-behavior: smooth;
}

.logout-button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

.logout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.login-link {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9em;
    display: inline-block;
}

.login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.status-display {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
}

.collected-status {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.bought-status {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.not-collected-status {
    background: #e0e0e0;
    color: #666;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    header {
        padding: 25px 20px;
        border-radius: 16px;
    }

    header h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .filter-container {
        margin-bottom: 20px;
    }

    .filter-row {
        flex-direction: column;
        gap: 20px;
    }

    .filter-item {
        min-width: 100%;
        max-width: 100%;
    }

    .set-filter {
        min-width: 100%;
        padding: 12px 20px;
    }

    .detail-container {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .detail-card {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detail-image-container {
        position: static;
    }

    .detail-title {
        font-size: 2em;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        min-width: 100%;
        padding: 18px 25px;
    }

    .gift-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .gift-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}
