/* ═══════════════════════════════════════════════════════════════════════════
   AIRAKONNECT — Venue Query Modal (Premium Redesign)
   Dark glassmorphism aesthetic with micro-interactions
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Modal Shell ─────────────────────────────────────────────────────── */
.ak-query-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ak-query-modal.open {
    display: flex;
}

/* Backdrop with animated blur */
.ak-query-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-query-modal.open .ak-query-modal-overlay {
    opacity: 1;
}

/* Modal Card */
.ak-query-modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 1.75rem;
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.05),
        0 25px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 80px -20px rgba(59, 130, 246, 0.08);
    color: #f8fafc;
    opacity: 0;
    transform: scale(0.92) translateY(24px);
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.25) transparent;
}

/* Flexbox centers the card; transform only handles scale + subtle rise */
.ak-query-modal.open .ak-query-modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.ak-query-modal-content::-webkit-scrollbar {
    width: 5px;
}

.ak-query-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.ak-query-modal-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.25);
    border-radius: 10px;
}

.ak-query-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.4);
}

/* Gradient top accent line */
.ak-query-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.5) 25%, rgba(59, 130, 246, 0.8) 50%, rgba(59, 130, 246, 0.5) 75%, transparent 100%);
    border-radius: 2px;
    z-index: 2;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.6s ease 0.2s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.ak-query-modal-ready.ak-query-modal-content::before {
    opacity: 1;
    transform: scaleX(1);
}

/* ─── Header ──────────────────────────────────────────────────────────── */
.ak-query-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.75rem 1.75rem 1.25rem;
    position: relative;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.ak-query-modal-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Glassmorphism icon circle */
.ak-query-modal-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease 0.15s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

.ak-query-modal-ready .ak-query-modal-icon {
    opacity: 1;
    transform: scale(1);
}

.ak-query-modal-icon svg {
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.3));
}

.ak-query-modal-title-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.ak-query-modal-ready .ak-query-modal-title-text {
    opacity: 1;
    transform: translateX(0);
}

.ak-query-modal-header h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ak-query-modal-subtitle {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.4;
}

/* Close button */
.ak-query-modal-close {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.625rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease 0.25s;
}

.ak-query-modal-ready .ak-query-modal-close {
    opacity: 1;
    transform: scale(1);
}

.ak-query-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

/* ─── Form ────────────────────────────────────────────────────────────── */
.ak-query-form {
    padding: 1.5rem 1.75rem 1.75rem;
}

.ak-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.ak-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ak-form-group:nth-child(1) { transition-delay: 0.1s; }
.ak-form-group:nth-child(2) { transition-delay: 0.18s; }
.ak-form-group:nth-child(3) { transition-delay: 0.26s; }

.ak-query-modal-ready .ak-form-group {
    opacity: 1;
    transform: translateY(0);
}

.ak-form-group-full {
    grid-column: 1 / -1;
    transition-delay: 0.34s !important;
}

.ak-form-group label {
    display: block;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.8125rem;
    font-family: 'Inter', sans-serif;
    padding-left: 0.25rem;
    transition: color 0.2s;
}

/* Input wrapper with icon */
.ak-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ak-input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.3s;
    z-index: 2;
}

.ak-input-wrap:focus-within .ak-input-icon {
    color: #3b82f6;
}

.ak-input-wrap input,
.ak-input-wrap textarea {
    width: 100%;
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 0.875rem;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ak-input-wrap textarea {
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.ak-input-wrap input::placeholder,
.ak-input-wrap textarea::placeholder {
    color: #64748b;
    opacity: 0.8;
}

.ak-input-wrap input:hover,
.ak-input-wrap textarea:hover {
    border-color: rgba(100, 116, 139, 0.35);
    background: rgba(15, 23, 42, 0.7);
}

.ak-input-wrap input:focus,
.ak-input-wrap textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.8);
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.08),
        0 0 20px rgba(59, 130, 246, 0.05),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Error state on input group */
.ak-has-error .ak-input-wrap input,
.ak-has-error .ak-input-wrap textarea {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.03);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.06);
}

.ak-has-error .ak-input-icon {
    color: #ef4444;
}

/* Shake animation for errors */
@keyframes akFormShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

.ak-has-error {
    animation: akFormShake 0.4s ease;
}

/* Error text */
.ak-form-error {
    font-size: 0.75rem;
    color: #ef4444;
    min-height: 1.2em;
    padding-left: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s, transform 0.3s;
}

.ak-has-error .ak-form-error {
    opacity: 1;
    transform: translateY(0);
}

.ak-form-error::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}

/* ─── Venues Section ────────────────────────────────────────────────── */
.ak-query-venues-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0.01) 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.ak-query-modal-ready .ak-query-venues-section {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle glow behind venue section */
.ak-query-venues-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.ak-query-venues-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.ak-query-venues-header h4 {
    margin: 0;
    font-size: 0.8125rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Inter', sans-serif;
}

.ak-query-venue-count {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(100, 116, 139, 0.1);
}

.ak-query-venue-count span {
    color: #3b82f6;
    font-weight: 700;
}

.ak-query-venues-list {
    max-height: 220px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.2) transparent;
    padding-right: 0.25rem;
}

.ak-query-venues-list::-webkit-scrollbar {
    width: 4px;
}

.ak-query-venues-list::-webkit-scrollbar-track {
    background: transparent;
}

.ak-query-venues-list::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
}

/* Venue item card */
.ak-query-venue-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateX(-8px);
    animation: akVenueItemIn 0.4s ease forwards;
}

@keyframes akVenueItemIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ak-query-venue-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateX(2px);
}

/* Venue thumbnail */
.ak-query-venue-thumb {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.5);
}

.ak-query-venue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ak-query-venue-info {
    flex: 1;
    min-width: 0;
}

.ak-query-venue-info h5 {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: #f1f5f9;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Outfit', sans-serif;
}

.ak-query-venue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.ak-query-venue-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ak-query-venue-meta svg {
    color: #3b82f6;
    opacity: 0.7;
}

.ak-query-venue-cat {
    background: rgba(59, 130, 246, 0.08);
    color: #60a5fa;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(59, 130, 246, 0.12);
}

/* Number badge */
.ak-query-venue-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #60a5fa;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.6875rem;
    flex-shrink: 0;
    border: 1px solid rgba(59, 130, 246, 0.15);
    font-family: 'Outfit', sans-serif;
}

/* ─── Form Actions ──────────────────────────────────────────────────── */
.ak-form-actions {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.ak-query-modal-ready .ak-form-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Ghost / Cancel button */
.ak-btn-ghost {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 0.875rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ak-btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 100%);
    opacity: 0;
    transition: opacity 0.25s;
}

.ak-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ak-btn-ghost:hover::before {
    opacity: 1;
}

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

/* Primary / Submit button */
.ak-btn-primary {
    flex: 2;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
    border-radius: 0.875rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Shine effect on button */
.ak-btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.ak-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b8ff7 0%, #3574ec 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ak-btn-primary:hover:not(:disabled)::after {
    transform: translateX(100%) rotate(45deg);
}

.ak-btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.ak-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    filter: grayscale(0.3);
}

/* Button loader */
.ak-btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   SUCCESS STATE OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.ak-query-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    min-height: 420px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-query-success.visible {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

/* Checkmark circle */
.ak-query-success-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: akSuccessPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes akSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ak-query-success-icon svg {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

/* Title */
.ak-query-success-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(10px);
    animation: akSuccessFadeUp 0.45s ease 0.25s both;
}

/* Description text */
.ak-query-success-text {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 320px;
    opacity: 0;
    transform: translateY(10px);
    animation: akSuccessFadeUp 0.45s ease 0.35s both;
}

/* Venue count badge */
.ak-query-success-venues {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(10px);
    animation: akSuccessFadeUp 0.45s ease 0.45s both;
}

.ak-query-success-count {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    color: #3b82f6;
}

.ak-query-success-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

/* Done button */
.ak-query-success .ak-btn-primary {
    min-width: 140px;
    opacity: 0;
    transform: translateY(10px);
    animation: akSuccessFadeUp 0.45s ease 0.55s both;
}

@keyframes akSuccessFadeUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ak-query-modal {
        padding: 0.5rem;
    }

    .ak-query-modal-content {
        max-height: 95vh;
        border-radius: 1.25rem;
    }

    .ak-query-modal-content::before {
        left: 1rem;
        right: 1rem;
    }

    .ak-query-modal-header {
        padding: 1.25rem 1.25rem 1rem;
    }

    .ak-query-modal-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.75rem;
    }

    .ak-query-modal-header h3 {
        font-size: 1.15rem;
    }

    .ak-query-modal-subtitle {
        font-size: 0.75rem;
    }

    .ak-query-form {
        padding: 1.25rem;
    }

    .ak-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ak-form-group:nth-child(1),
    .ak-form-group:nth-child(2),
    .ak-form-group:nth-child(3),
    .ak-form-group-full {
        transition-delay: 0.1s !important;
    }

    .ak-form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ak-btn-ghost,
    .ak-btn-primary {
        width: 100%;
        padding: 0.875rem;
    }

    .ak-query-venues-section {
        padding: 1rem;
        margin: 1.25rem 0;
    }

    .ak-query-venues-list {
        max-height: 180px;
    }

    .ak-query-venue-thumb {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 380px) {
    .ak-query-modal-content {
        border-radius: 1rem;
    }

    .ak-query-modal-header h3 {
        font-size: 1.05rem;
    }

    .ak-query-modal-subtitle {
        display: none;
    }

    .ak-input-wrap input,
    .ak-input-wrap textarea {
        font-size: 0.875rem;
    }
}

/* ─── Email Button Styles (strip + sidebar) ───────────────────────────── */
.ak-selection-btn-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
    font-family: 'Inter', sans-serif;
}

.ak-selection-btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    filter: brightness(1.1);
}

.ak-selection-btn-email:active {
    transform: translateY(0);
}

/* Small email button in strip */
.ak-selection-btn-email-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.ak-selection-btn-email-sm:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

.ak-selection-btn-email-sm svg {
    width: 16px;
    height: 16px;
}
