/* ============================================
   COMPONENTS — UI ELEMENTS
   ============================================ */

/* ============================================
   HOME CARDS SECTION
   ============================================ */
.home-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
    margin-bottom: 32px;
}

/* ============================================
   HOME V2 (tiles like screenshot)
   ============================================ */
.home-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding-top: 6px;
}

.home-hero {
    position: relative;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.home-hero-media {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    border-radius: 26px;
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 26px;
    border: 3px solid var(--orange);
    pointer-events: none;
}

.home-hero-title {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(64px, 18vw, 120px);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--orange);
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
    mix-blend-mode: screen;
    opacity: 0.95;
    pointer-events: none;
}

.home-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.home-tile {
    border: 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.home-tile::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85));
    pointer-events: none;
    z-index: 1;
}

.home-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 2px solid rgba(255, 153, 0, 0.5);
    pointer-events: none;
    z-index: 2;
}

.home-tile-media {
    display: block;
    width: 100%;
    height: 190px;
    background: rgba(255, 255, 255, 0.10);
}

.home-tile-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.03em;
    color: var(--text);
    text-transform: uppercase;
    font-size: 19px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    z-index: 3;
}

.home-prompt {
    border: 0;
    border-radius: 18px;
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
    position: relative;
    overflow: hidden;
}

.home-prompt::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 2px solid rgba(255, 153, 0, 0.5);
    pointer-events: none;
}

.home-prompt:focus-visible,
.home-tile:focus-visible,
.home-hero:focus-visible {
    outline: 2px solid rgba(255, 153, 0, 0.9);
    outline-offset: 3px;
}

@media (max-width: 420px) {
    .home-hero-title {
        font-size: clamp(60px, 20vw, 110px);
    }
    .home-hero-media {
        height: 200px;
    }
    .home-tile-media {
        height: 160px;
    }
    .home-tile-label {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .home-tiles {
        gap: 6px;
    }
    .home-tile-media {
        height: 145px;
    }
}

.card {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.25), rgba(255, 153, 0, 0.08));
    border: 3px solid var(--orange);
    border-radius: 32px;
    padding: 40px 24px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
    justify-content: center;
        box-shadow: 0 8px 32px rgba(255, 153, 0, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
        background: radial-gradient(circle, rgba(255, 153, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.card:hover {
    border-color: var(--orange);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(255, 153, 0, 0.25);
}

.card:hover::before {
    opacity: 1;
}

.card:active {
    transform: translateY(-4px);
}

.card-icon {
    font-size: 72px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
        color: var(--orange);
    opacity: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
        background: rgba(255, 153, 0, 0.1);
    border-radius: 24px;
        border: 2px solid rgba(255, 153, 0, 0.2);
}

.card h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 16px 0 12px 0;
    position: relative;
    z-index: 1;
    color: var(--text);
}

.card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.4;
    max-width: 90%;
}

/* ============================================
   CARD BUTTONS ON HOME SCREEN
   ============================================ */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 25px;
}
.card-button {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
        border: 3px solid var(--orange);
    cursor: pointer;
    transition: var(--transition);
        box-shadow: 0 8px 24px rgba(255, 153, 0, 0.2);
    height: 240px;
}
.card-button:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(255, 153, 0, 0.35);
}
.card-button:active {
    transform: translateY(-2px);
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) contrast(1.1);
}
.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.card-label h2 {
    margin-bottom: 6px;
    font-size: 24px;
    font-weight: 700;
}
.card-label p {
    font-size: 14px;
    opacity: 0.9;
}
/* ============================================
   PRESET CARDS (IMG / VIDEO)
   ============================================ */
.preset-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}
.preset-card:hover {
        border-color: var(--orange);
}
.preset-card.active {
        border-color: var(--orange);
}
.preset-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.preset-label {
    padding: 10px;
}
.preset-label h4 {
    font-size: 16px;
}
.preset-price {
    position: absolute;
    top: 10px;
    right: 10px;
        background: var(--orange);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
}
.preset-badge {
    position: absolute;
    top: 10px;
    left: 10px;
        background: var(--orange);
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}
/* ============================================
   INPUT FIELDS / SELECTS / CHECKBOXES
   ============================================ */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input:not([type]),
select {
    width: 100%;
    background: var(--bg-soft);
    border: 2px solid #1a1a1a;
    padding: 14px;
    font-size: 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    margin-top: 8px;
    transition: var(--transition);
}
input:focus,
select:focus {
    border-color: var(--orange);
    outline: none;
}
.checkbox-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 18px;
}
.checkbox-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
}
/* ============================================
   PAYMENT METHODS (REFILL)
   ============================================ */
.refill-method-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}
.refill-method-item img {
    width: 34px;
    height: 34px;
}
.refill-method-item:hover {
    border-color: var(--orange);
}
.refill-method-item.active {
    border-color: var(--orange);
}
/* ============================================
   REFILL PACKAGES
   ============================================ */
.refill-pack-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.refill-pack-item:hover {
    border-color: var(--orange);
}
.refill-pack-item.active {
    border-color: var(--orange);
}
.refill-left {
    display: flex;
    flex-direction: column;
}
.refill-oldprice {
    text-decoration: line-through;
    font-size: 14px;
    color: var(--text-soft);
}
/* ============================================
   LANGUAGE AND THEME SELECT LISTS
   ============================================ */
.modal-select-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    min-height: 50px;
}
.modal-select-item:hover {
    border-color: var(--orange);
}
.modal-select-item img {
    width: 30px;
}
.modal-select-item.active {
    border-color: var(--orange);
}
.modal-select-item .checkmark {
    width: 22px;
    height: 22px;
    background: var(--orange);
    border-radius: 50%;
}
/* ============================================
   BOT CARDS (PROFILE → BOT LIST)
   ============================================ */
.bot-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 153, 0, 0.20);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.bot-card:hover {
    border-color: rgba(255, 153, 0, 0.60);
    background: rgba(255, 153, 0, 0.06);
}

.bot-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9900, #ffcc80);
    flex-shrink: 0;
}

.bot-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bot-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bot-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.bot-tag {
    background: var(--orange);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
}

.bot-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-soft);
}

.bot-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bot-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.bot-percent {
    background: var(--orange);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}
/* ============================================
   BOT STATISTICS PAGE
   ============================================ */
.stats-wrapper {
    padding: 20px 10px;
}
.stats-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.stats-big-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid #1a1a1a;
}
.stats-big-card h2 {
    font-size: 26px;
}
.stats-small-card {
    background: var(--bg-card);
    padding: 14px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid #1a1a1a;
}
.stats-languages {
    margin-top: 15px;
}
.lang-flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    padding: 6px 12px;
    border-radius: 12px;
    margin: 6px 6px 0 0;
}
/* ============================================
   TABLE (COUNTRIES)
   ============================================ */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.stats-table th {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 14px;
    padding-bottom: 8px;
    text-align: left;
}
.stats-table td {
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px solid #1b1b1b;
}
/* ============================================
   HISTORY ITEMS
   ============================================ */
.history-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: var(--transition);
}
.history-item:hover {
    border-color: var(--orange);
}
.history-item img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.history-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-soft);
}
/* ============================================
   RANGE SLIDER (duration)
   ============================================ */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin-top: 10px;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 4px;
    background: #2a2a2a;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--orange);
    border-radius: 50%;
    margin-top: -6px;
}
/* ============================================
   SHARE BUTTON & COPY INPUT
   ============================================ */
.copy-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: url('../assets/icons/copy.svg') center/24px no-repeat;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    opacity: 0.8;
}

.btn-switch {
    background: var(--orange);
    padding: 12px 14px;
    color: #fff;
    border-radius: var(--radius-sm);
    border: none;
    margin-bottom: 20px;
    font-weight: 700;
}

/* ============================================
   PROFILE BLOCKS
   ============================================ */
.balance-box {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 153, 0, 0.50);
    padding: 20px;
    border-radius: 22px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.balance-box p {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.balance-box h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.ref-block {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.08);
}

.ref-block h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.ref-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.ref-stats > div {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: rgba(255, 153, 0, 0.08);
    border-radius: 12px;
}

.ref-stats h2 {
    font-size: 28px;
    color: var(--orange);
    margin-bottom: 4px;
}

.ref-stats p {
    font-size: 12px;
    color: var(--text-soft);
    text-transform: uppercase;
}

.ref-link-box {
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.ref-link-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    padding: 12px 14px;
    margin: 0;
}

.ref-link-box input:focus {
    outline: none;
    border: none;
}

.ref-how {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ref-how h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.ref-how ul {
    padding-left: 20px;
}

.ref-how li {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 6px;
}

/* Settings items */
.settings-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    transition: var(--transition);
    border: 2px solid rgba(255, 153, 0, 0.20);
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.settings-item:hover {
    border-color: rgba(255, 153, 0, 0.55);
    background: rgba(255, 153, 0, 0.06);
}

.left-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.left-block img {
    width: 28px;
}

.left-block > div p {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.left-block > div span {
    font-size: 13px;
    color: var(--text-soft);
}

/* Warning box */
.warning-box {
    margin-top: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 153, 0, 0.10);
    color: rgba(255, 153, 0, 0.95);
    font-size: 14px;
}

/* Version label */
.version-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================
   PROFILE INFO STYLES
   ============================================ */
.profile-info-item {
    margin-bottom: 20px;
}

.profile-info-item label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-info-item input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 14px;
}

.profile-info-item input:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 153, 0, 0.06);
}

.profile-info-item input:read-only {
    cursor: not-allowed;
    opacity: 0.7;
}

.profile-info-item h3 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stats-grid > div {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 153, 0, 0.20);
    text-align: center;
}

.stats-grid > div span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stats-grid > div strong {
    display: block;
    font-size: 18px;
    color: var(--orange);
    font-weight: 700;
}

.modal-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}