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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.view {
    display: none;
}

.view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Set Timebox View */
.set-view h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    border: 2px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    transform: scale(1.02);
}

.design-options {
    margin-bottom: 2rem;
}

.design-options label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.design-option {
    padding: 0.8rem 1rem;
    border: 2px solid currentColor;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.design-option:hover {
    transform: translateY(-3px);
}

.design-option.selected {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px currentColor;
}

.btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: inherit;
    background: currentColor;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.quick-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.quick-btn {
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.quick-btn:hover {
    transform: scale(1.2);
}

.quick-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 0.3rem;
}

.quick-btn:hover::after {
    opacity: 1;
}

/* Show Timebox View */
.show-view {
    text-align: center;
}

/* Timeboxes Container */
.timeboxes-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Starts In Countdown */
.starts-in-countdown {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.starts-in-label {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.starts-in-time {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    opacity: 1;
}

/* Completed Countdown */
.completed-countdown {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.completed-label {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.completed-time {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    opacity: 1;
}

/* Session Header */
.session-header {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    opacity: 0.95;
    line-height: 1.2;
}

/* Individual Timebox */
.timebox {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timebox-duration {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    opacity: 0.8;
    text-align: left;
}

.timebox-progress-bar {
    position: relative;
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid currentColor;
    border-radius: 8px;
    overflow: hidden;
}

.timebox-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: currentColor;
    transition: width 0.1s linear;
}

.timebox-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    z-index: 1;
    mix-blend-mode: difference;
    color: white;
}

/* Timebox States */
.timebox-completed .timebox-progress-bar {
    opacity: 0.4;
}

.timebox-completed .timebox-duration {
    opacity: 0.5;
}

.timebox-future .timebox-progress-fill {
    background: rgba(255, 255, 255, 0.2);
}

.copy-timebox-link,
.create-timebox-link,
.download-script-link {
    display: block;
    margin-top: 2rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.7;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.download-script-link {
    margin-top: 1.5rem;
}

.download-script-link u {
    text-decoration: underline;
}

.copy-timebox-link {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.copy-timebox-link:hover,
.create-timebox-link:hover,
.download-script-link:hover {
    opacity: 1;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* About View */
.about-view {
    text-align: center;
}

.about-view h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
}

.about-view p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Create View */
.create-view h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
}

.start-time-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.radio-label input[type="datetime-local"] {
    flex: 1;
    padding: 0.5rem;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.radio-label input[type="datetime-local"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timeboxes-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.timebox-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.timebox-row input[type="text"] {
    flex: 2;
    padding: 0.7rem;
    font-size: 1rem;
    border: 2px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
}

.timebox-row input[type="text"]:first-child {
    flex: 3;
}

.timebox-row .delete-btn {
    padding: 0.7rem 1rem;
    font-size: 1rem;
    border: 2px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timebox-row .delete-btn:hover {
    background: currentColor;
    color: var(--bg-color, white);
    transform: scale(1.05);
}

.btn-secondary {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    border: 2px dashed currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.url-preview {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px solid currentColor;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    text-align: center;
}

.url-preview label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
}

.url-preview a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: inherit;
    text-decoration: underline;
    word-break: break-all;
    transition: opacity 0.3s ease;
}

.url-preview a:hover {
    opacity: 0.7;
}

/* Footer */
.footer {
    margin-top: 3rem;
    text-align: center;
}

.footer-link {
    display: block;
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.7;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-text {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    opacity: 0.5;
    margin-top: 0.5rem;
}

/* Design: Classic Minimal */
body.design-classic {
    background: #ffffff;
    color: #1a1a1a;
}
.design-classic .btn {
    background: #1a1a1a;
    color: #ffffff;
}
.design-classic .design-option.selected {
    background: #1a1a1a;
    color: #ffffff;
}
.design-classic .toast {
    background: #1a1a1a;
    color: #ffffff;
}

/* Design: Neon Cyberpunk */
body.design-neon {
    background: #0a0e27;
    color: #00ff88;
}
.design-neon .btn {
    background: #00ff88;
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}
.design-neon .design-option.selected {
    background: #00ff88;
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}
.design-neon input {
    border-color: #00ff88;
}
.design-neon .toast {
    background: rgba(0, 255, 136, 0.95);
    color: #0a0e27;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Design: Gradient Modern */
body.design-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}
.design-gradient .container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.design-gradient .btn {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}
.design-gradient .design-option.selected {
    background: rgba(255, 255, 255, 0.3);
}
.design-gradient .toast {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

/* Design: Sepia Vintage */
body.design-sepia {
    background: linear-gradient(135deg, #f4e8d8 0%, #e8d5c4 50%, #d9c4b0 100%);
    color: #5c4033;
}
.design-sepia .container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(92, 64, 51, 0.15);
}
.design-sepia .btn {
    background: #8b6f47;
    color: #f4e8d8;
}
.design-sepia .design-option.selected {
    background: #8b6f47;
    color: #f4e8d8;
}
.design-sepia input {
    border-color: #8b6f47;
}
.design-sepia .toast {
    background: rgba(139, 111, 71, 0.95);
    color: #f4e8d8;
    box-shadow: 0 4px 20px rgba(92, 64, 51, 0.3);
}

/* Design: Nature Organic */
body.design-nature {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #5d4037;
}
.design-nature .container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.design-nature .btn {
    background: #d84315;
    color: #ffffff;
}
.design-nature .design-option.selected {
    background: #d84315;
    color: #ffffff;
}
.design-nature .toast {
    background: rgba(216, 67, 21, 0.95);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(216, 67, 21, 0.4);
}

/* Design: Dark Classic */
body.design-dark {
    background: #000000;
    color: #ffffff;
}
.design-dark .btn {
    background: #ffffff;
    color: #000000;
}
.design-dark .design-option.selected {
    background: #ffffff;
    color: #000000;
}
.design-dark .toast {
    background: #ffffff;
    color: #000000;
}

/* Design: Ocean Blue */
body.design-ocean {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #00d4ff;
    position: relative;
}
body.design-ocean::before,
body.design-ocean::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 300%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%2300d4ff' fill-opacity='0.15' d='M0,40 Q300,100 600,40 T1200,40 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    background-size: 1200px 100px;
    background-repeat: repeat-x;
    animation: oceanWave 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}
body.design-ocean::after {
    height: 70px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%2300d4ff' fill-opacity='0.08' d='M0,40 Q300,100 600,40 T1200,40 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    background-size: 1200px 70px;
    animation: oceanWave 14s linear infinite reverse;
}
@keyframes oceanWave {
    from { background-position-x: 0; }
    to { background-position-x: -1200px; }
}
.design-ocean .container {
    background: rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}
.design-ocean .btn {
    background: #00d4ff;
    color: #0f2027;
}
.design-ocean .design-option.selected {
    background: #00d4ff;
    color: #0f2027;
}
.design-ocean .toast {
    background: rgba(0, 212, 255, 0.95);
    color: #0f2027;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Design: Sunset Fire */
body.design-sunset {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
    color: #2d0a3f;
}
.design-sunset .container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.design-sunset .btn {
    background: #7e1d5e;
    color: #ffffff;
}
.design-sunset .design-option.selected {
    background: #7e1d5e;
    color: #ffffff;
}
.design-sunset .toast {
    background: rgba(126, 29, 94, 0.95);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(126, 29, 94, 0.5);
}

/* Design: Matrix Code */
body.design-matrix {
    background: #0d0d0d;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    position: relative;
}
body.design-matrix::before {
    content: 'ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ0123456789';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.2;
    color: transparent;
    background: repeating-linear-gradient(
        180deg,
        rgba(0,255,65,0.03) 0px,
        rgba(0,255,65,0.08) 50%,
        rgba(0,255,65,0.03) 100%
    );
    background-size: 100% 200%;
    animation: matrixRain 3s linear infinite;
}
body.design-matrix::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0,255,65,0.02) 50%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 30px,
            rgba(0,255,65,0.03) 30px,
            rgba(0,255,65,0.03) 31px
        );
    background-size: 100% 300%, 31px 100%;
    animation: matrixRain 2s linear infinite;
}
@keyframes matrixRain {
    0% { background-position: 0 0; }
    100% { background-position: 0 200%; }
}
.design-matrix .btn {
    background: #00ff41;
    color: #0d0d0d;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}
.design-matrix .design-option.selected {
    background: #00ff41;
    color: #0d0d0d;
}
.design-matrix input {
    border-color: #00ff41;
    font-family: 'Courier New', monospace;
}
.design-matrix .toast {
    background: rgba(0, 255, 65, 0.95);
    color: #0d0d0d;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Design: Ice Arctic */
body.design-ice {
    background: linear-gradient(135deg, #e0f7ff 0%, #b3e5fc 50%, #81d4fa 100%);
    color: #01579b;
}
.design-ice .container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(1, 87, 155, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.design-ice .btn {
    background: #0277bd;
    color: #ffffff;
}
.design-ice .design-option.selected {
    background: #0277bd;
    color: #ffffff;
}
.design-ice .toast {
    background: rgba(2, 119, 189, 0.95);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(2, 119, 189, 0.4);
}

/* Design: Christmas */
body.design-xmas {
    background: linear-gradient(135deg, #165a4c 0%, #1e8767 50%, #b91d1d 100%);
    color: #ffffff;
    position: relative;
}
body.design-xmas::before,
body.design-xmas::after {
    content: '❄';
    position: fixed;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    pointer-events: none;
    z-index: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    text-shadow:
        20vw 10vh 0 rgba(255,255,255,0.3),
        40vw 20vh 0 rgba(255,255,255,0.5),
        60vw 5vh 0 rgba(255,255,255,0.4),
        80vw 15vh 0 rgba(255,255,255,0.3),
        10vw 30vh 0 rgba(255,255,255,0.5),
        30vw 40vh 0 rgba(255,255,255,0.4),
        50vw 25vh 0 rgba(255,255,255,0.3),
        70vw 35vh 0 rgba(255,255,255,0.5),
        90vw 45vh 0 rgba(255,255,255,0.4),
        15vw 55vh 0 rgba(255,255,255,0.3),
        35vw 60vh 0 rgba(255,255,255,0.5),
        55vw 50vh 0 rgba(255,255,255,0.4),
        75vw 65vh 0 rgba(255,255,255,0.3),
        95vw 70vh 0 rgba(255,255,255,0.5),
        5vw 75vh 0 rgba(255,255,255,0.4),
        25vw 85vh 0 rgba(255,255,255,0.3),
        45vw 80vh 0 rgba(255,255,255,0.5),
        65vw 90vh 0 rgba(255,255,255,0.4),
        85vw 95vh 0 rgba(255,255,255,0.3);
    animation: snowfall 8s linear infinite;
}
body.design-xmas::after {
    font-size: 10px;
    animation: snowfall 12s linear infinite;
    animation-delay: -4s;
    text-shadow:
        8vw 8vh 0 rgba(255,255,255,0.25),
        28vw 18vh 0 rgba(255,255,255,0.35),
        48vw 12vh 0 rgba(255,255,255,0.25),
        68vw 22vh 0 rgba(255,255,255,0.35),
        88vw 28vh 0 rgba(255,255,255,0.25),
        18vw 38vh 0 rgba(255,255,255,0.35),
        38vw 48vh 0 rgba(255,255,255,0.25),
        58vw 42vh 0 rgba(255,255,255,0.35),
        78vw 52vh 0 rgba(255,255,255,0.25),
        3vw 62vh 0 rgba(255,255,255,0.35),
        23vw 72vh 0 rgba(255,255,255,0.25),
        43vw 68vh 0 rgba(255,255,255,0.35),
        63vw 78vh 0 rgba(255,255,255,0.25),
        83vw 82vh 0 rgba(255,255,255,0.35);
}
@keyframes snowfall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.design-xmas .container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.design-xmas .btn {
    background: #ffd700;
    color: #165a4c;
    font-weight: 700;
}
.design-xmas .design-option.selected {
    background: #ffd700;
    color: #165a4c;
}
.design-xmas .toast {
    background: rgba(255, 215, 0, 0.95);
    color: #165a4c;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Design: Space Galaxy */
body.design-space {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #b19cd9;
    position: relative;
}
body.design-space::before,
body.design-space::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
body.design-space::before {
    background-image:
        radial-gradient(2px 2px at 10% 20%, #fff 100%, transparent),
        radial-gradient(2px 2px at 40% 15%, #b19cd9 100%, transparent),
        radial-gradient(1px 1px at 55% 45%, #fff 100%, transparent),
        radial-gradient(2px 2px at 85% 55%, #b19cd9 100%, transparent),
        radial-gradient(1px 1px at 15% 65%, #fff 100%, transparent),
        radial-gradient(2px 2px at 50% 70%, #b19cd9 100%, transparent),
        radial-gradient(1px 1px at 80% 75%, #fff 100%, transparent),
        radial-gradient(2px 2px at 5% 90%, #b19cd9 100%, transparent);
    animation: twinkle1 2s ease-in-out infinite;
}
body.design-space::after {
    background-image:
        radial-gradient(1px 1px at 25% 35%, #fff 100%, transparent),
        radial-gradient(1px 1px at 70% 25%, #fff 100%, transparent),
        radial-gradient(1px 1px at 30% 80%, #fff 100%, transparent),
        radial-gradient(1px 1px at 65% 85%, #fff 100%, transparent),
        radial-gradient(1px 1px at 95% 40%, #fff 100%, transparent),
        radial-gradient(1px 1px at 45% 5%, #fff 100%, transparent),
        radial-gradient(1px 1px at 75% 95%, #fff 100%, transparent);
    animation: twinkle2 3s ease-in-out infinite;
}
@keyframes twinkle1 {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
@keyframes twinkle2 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.design-space .container {
    background: rgba(177, 156, 217, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(177, 156, 217, 0.2);
}
.design-space .btn {
    background: #b19cd9;
    color: #0f0c29;
}
.design-space .design-option.selected {
    background: #b19cd9;
    color: #0f0c29;
}
.design-space .toast {
    background: rgba(177, 156, 217, 0.95);
    color: #0f0c29;
    box-shadow: 0 0 20px rgba(177, 156, 217, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .design-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .design-option {
        padding: 0.8rem 0.4rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .design-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    .design-option {
        padding: 0.7rem 0.3rem;
        font-size: 0.75rem;
    }
}
