@media (min-width: 900px) {
  .modal-overlay {
    align-items: center;
    justify-content: center;
  }
  .modal-box {
    width: 100%;
    max-width: 666px !important;
    min-width: 320px;
    margin: 0 auto;
  }
}
/* modals.css - Reusable modal styles for Rabbit Wine apps */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 24, 40, 0.65);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal-box {
    background: #2a2438;
    color: #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 8px 32px #0008, 0 0 0 2px #a084ff44;
    min-width: 340px;
    max-width: 92vw;
    min-height: 140px;
    max-height: 92vh;
    padding: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-pop 0.18s cubic-bezier(.4,1.6,.6,1) 1;
    box-shadow: 0 12px 48px #000b, 0 0 0 2px #a084ff55;
    border: 1.5px solid #4a4458;
    backdrop-filter: blur(10px) saturate(1.2);
}
@keyframes modal-pop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 36px 14px 36px;
    border-bottom: 1.5px solid #4a4458;
    background: transparent;
}
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #a084ff;
}
.modal-close {
    background: none;
    border: none;
    color: #b8b8b8;
    font-size: 26px;
    cursor: pointer;
    padding: 0 2px;
    border-radius: 6px;
    transition: background 0.15s;
}
.modal-close:hover {
    background: #3a3448;
    color: #fff;
}
.modal-content {
    padding: 36px 24px 24px 24px;
    font-size: 17px;
    color: #e6e6e6;
    flex: 1 1 auto;
    overflow-y: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: linear-gradient(120deg, #2a2438 80%, #3a3448 100%);
    border-radius: 0 0 18px 18px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 22px 18px 22px;
    border-top: 1px solid #4a4458;
    background: transparent;
}
.modal-actions button {
    min-width: 64px;
    min-height: 32px;
    font-size: 14px;
    font-family: inherit;
    border-radius: 7px;
    border: none;
    background: linear-gradient(90deg, #a084ff 60%, #7c5fff 100%);
    color: #111;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px #a084ff22;
    letter-spacing: 0.01em;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
    padding: 0 18px;
}
.modal-actions button:hover, .modal-actions button:focus {
    background: linear-gradient(90deg, #bba6ff 60%, #a084ff 100%);
    box-shadow: 0 4px 16px #a084ff33;
    transform: translateY(-1px) scale(1.03);
}
.modal-actions .modal-cancel {
    background: linear-gradient(90deg, #3a3448 60%, #4a4458 100%);
    color: #b8b8b8;
    box-shadow: none;
}
.modal-actions .modal-cancel:hover,
.modal-actions .modal-cancel:focus {
    color: #111 !important;
}
}
.about-modal-btns {
    display: flex;
    flex-direction: row;
    gap: 18px;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    margin: 18px 0 0 0;
}
.about-modal-btns button {
    width: 260px;
    max-width: 90vw;
    min-height: 56px;
    font-size: 1.08rem;
    border-radius: 16px;
    margin: 0;
    background: linear-gradient(120deg, #23203a 60%, #3a3448 100%);
    color: #e6e6e6;
    border: 2px solid #4a4458;
    font-weight: 700;
    box-shadow: 0 4px 18px #0008, 0 0 0 2px #a084ff33;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s, border-color 0.18s;
    cursor: pointer;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.01em;
    filter: drop-shadow(0 2px 8px #a084ff22);
}
@media (max-width: 600px) {
  .about-modal-btns button {
    padding: 0 0;
  }
}
@media (max-width: 600px) {
  .modal-content {
    padding: 18px 6vw 18px 6vw;
    gap: 16px;
    font-size: 15px;
  }
  .about-modal-btns {
    flex-direction: column;
    gap: 14px;
    margin: 10px 0 0 0;
  }
  .about-modal-btns button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    font-size: 1.05rem;
    border-radius: 12px;
    padding: 0 0 0 0;
  }
  .about-modal-footer {
    font-size: 14px;
    margin-top: 14px;
  }
}
.about-modal-btns button:hover, .about-modal-btns button:focus {
    background: linear-gradient(120deg, #3a3448 60%, #4a4458 100%);
    color: #fff;
    border-color: #a084ff;
    box-shadow: 0 12px 32px #a084ff44, 0 0 0 2px #a084ff77;
    transform: translateY(-4px) scale(1.06);
}
.about-modal-footer {
    color: #b8b8b8;
    font-size: 17px;
    margin-top: 24px;
    text-align: center;
    width: 100%;
    letter-spacing: 0.01em;
    font-weight: 500;
    text-shadow: 0 1px 2px #0006;
}
body.modal-open {
    overflow: hidden !important;
}
