/* =========================================
   GOOGLE GEMINI TTS - MODERN STYLE (V12)
   Match with Minimax TTS Design
   ========================================= */

.ggt-container { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; max-width: 800px; margin: 0 auto; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); box-sizing: border-box; }
.ggt-container * { box-sizing: border-box; }

/* HEADER */
.ggt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.ggt-title { font-size: 20px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 8px; margin: 0; }
.ggt-balance-area { display: flex; align-items: center; gap: 10px; }
.ggt-balance { background: #f0f9ff; color: #0284c7; padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; border: 1px solid #bae6fd; }
.ggt-deposit-btn { background: #f59e0b !important; color: white !important; padding: 7px 16px !important; border-radius: 20px !important; font-size: 13px !important; font-weight: bold !important; text-decoration: none !important; border: none !important; box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3); }
.ggt-deposit-btn:hover { background: #d97706 !important; transform: translateY(-1px); }

/* MODEL CARDS */
.ggt-model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 8px; }
.ggt-radio-card { position: relative; cursor: pointer; margin: 0; } 
.ggt-radio-card input { display: none; }
.ggt-rc-content { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 2px; transition: all 0.2s ease; height: 100%; text-align: center; }
.ggt-rc-head { display: flex; align-items: center; justify-content: center; gap: 5px; }
.ggt-rc-title { font-weight: 700; font-size: 13px; color: #334155; }
.ggt-rc-price { font-size: 11px; color: #64748b; }
/* Checked State - Google Blue */
.ggt-radio-card input:checked + .ggt-rc-content { border-color: #4285F4; background: #eff6ff; box-shadow: 0 0 0 1px #4285F4; }
.ggt-radio-card input:checked + .ggt-rc-content .ggt-rc-title { color: #1e40af; }
.ggt-radio-card:hover .ggt-rc-content { border-color: #cbd5e1; transform: translateY(-1px); }

/* TOOLTIP */
.ggt-tooltip-wrap { position: relative; display: inline-flex; align-items: center; }
.ggt-info-icon { font-size: 14px; color: #94a3b8; cursor: help; }
.ggt-info-icon:hover { color: #4285F4; }
.ggt-tooltip-text { visibility: hidden; width: 220px; background-color: #1e293b; color: #fff; text-align: left; border-radius: 6px; padding: 10px; position: absolute; z-index: 100; bottom: 135%; left: 50%; margin-left: -110px; opacity: 0; transition: opacity 0.3s; font-size: 11px; line-height: 1.4; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); pointer-events: none; }
.ggt-tooltip-wrap:hover .ggt-tooltip-text { visibility: visible; opacity: 1; }

/* FORM */
.ggt-form-group { margin-bottom: 20px; }
.ggt-form-group label { display: block; font-weight: 600; font-size: 13px; color: #475569; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.ggt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 15px; }
.ggt-select, .ggt-input, .ggt-textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; color: #1e293b; background: #fff; min-height: 42px; line-height: 1.5; font-family: inherit; }
.ggt-select:focus, .ggt-input:focus, .ggt-textarea:focus { outline: none; border-color: #4285F4; box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1); }

/* Voice Wrapper */
.ggt-voice-wrapper { display: flex; gap: 5px; }
.ggt-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; background: #4285F4; border: none; color: white; cursor: pointer; flex-shrink: 0; }
.ggt-icon-btn:hover { background: #3367d6; }

/* FOOTER & BUTTON */
.ggt-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f1f5f9; }
.ggt-btn { background: #4285F4; color: white; border: none; padding: 12px 28px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; font-size: 15px; }
.ggt-btn:hover { background: #3367d6; transform: translateY(-1px); }
.ggt-btn:disabled { background: #94a3b8; cursor: not-allowed; }

/* PROGRESS BAR */
.ggt-progress-bar { width: 100%; height: 6px; background: #f1f5f9; border-radius: 6px; overflow: hidden; position: relative; }
.ggt-progress-fill { width: 0%; height: 100%; background: #4285F4; transition: width 0.3s ease; }

/* HISTORY LIST */
.ggt-history-section { margin-top: 32px; border-top: 1px solid #f1f5f9; padding-top: 24px; }
.ggt-history-item { background: #fff; border: 1px solid #e2e8f0; padding: 16px; border-radius: 12px; margin-bottom: 12px; }
.ggt-h-info { display: flex; flex-direction: column; gap: 6px; }
.ggt-h-text { font-size: 14px; color: #334155; }
.ggt-h-meta { font-size: 12px; color: #94a3b8; display: flex; gap: 10px; align-items: center; }
.ggt-h-actions { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 10px; }
.ggt-h-actions audio { height: 32px; flex: 1; border-radius: 16px; }

/* Mini Buttons in History */
.ggt-mini-btn, .ggt-copy-btn, .ggt-dl-btn { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 12px; color: #64748b; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.ggt-mini-btn:hover, .ggt-copy-btn:hover, .ggt-dl-btn:hover { border-color: #4285F4; color: #4285F4; background: #f0f9ff; }

/* Badges */
.ggt-badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.ggt-badge-flash { background: #fffbeb; color: #d97706; }
.ggt-badge-pro { background: #eff6ff; color: #2563eb; }

/* MODAL */
.ggt-modal { display: none; position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(4px); z-index: 99999; align-items: center; justify-content: center; }
.ggt-modal-content { background: #fff; padding: 30px; width: 90%; max-width: 400px; border-radius: 16px; text-align: center; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.ggt-modal-icon.error { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #fee2e2; color: #ef4444; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.ggt-modal-icon.error::after { content: "✕"; }
.ggt-modal-close { background: #f1f5f9; color: #475569; border: none; padding: 10px 30px; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 20px; }

@media (max-width: 600px) { .ggt-grid-2, .ggt-model-grid { grid-template-columns: 1fr; gap: 10px; } .ggt-footer { flex-direction: column; gap: 15px; align-items: stretch; } .ggt-cost { text-align: center; margin-bottom: 5px; } .ggt-header { flex-direction: column; align-items: flex-start; gap: 10px; } .ggt-balance-area { width: 100%; justify-content: space-between; } }